I'm building apache 2.4.x (latest) for Solaris on Intel.
I've built a cross compiler for this, which seems to be
working fine. That said, all my modules are being built as
.a and .la files, rather than .so files. Apache fails to
start when it tries to load modules, saying that it cannot
find <module-name>.so, which makes sense.
I've compiled PCRE with the same compiler and the same flags
and I got .so libraries along with .a and .la versions.
user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$ ls
-lF
total 480
-rw-r--r-- 1 user user 218250 Nov 20 00:24 libpcre.a
-rw-r--r-- 1 user user 50356 Nov 20 00:24 libpcrecpp.a
-rwxr-xr-x 1 user user 1125 Nov 20 00:24 libpcrecpp.la*
lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so
-> libpcrecpp.so.0.0.1*
lrwxrwxrwx 1 user user 19 Nov 20 00:24 libpcrecpp.so.0
-> libpcrecpp.so.0.0.1*
-rwxr-xr-x 1 user user 45896 Nov 20 00:24
libpcrecpp.so.0.0.1*
-rwxr-xr-x 1 user user 954 Nov 20 00:24 libpcre.la*
-rw-r--r-- 1 user user 6552 Nov 20 00:24 libpcreposix.a
-rwxr-xr-x 1 user user 1054 Nov 20 00:24 libpcreposix.la*
lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so
-> libpcreposix.so.0.0.3*
lrwxrwxrwx 1 user user 21 Nov 20 00:24 libpcreposix.so.0
-> libpcreposix.so.0.0.3*
-rwxr-xr-x 1 user user 11336 Nov 20 00:24
libpcreposix.so.0.0.3*
lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so ->
libpcre.so.1.2.5*
lrwxrwxrwx 1 user user 16 Nov 20 00:24 libpcre.so.1
-> libpcre.so.1.2.5*
-rwxr-xr-x 1 user user 129264 Nov 20 00:24 libpcre.so.1.2.5*
drwxrwxr-x 2 user user 4096 Nov 20 00:24 pkgconfig/ user@ubuntu-vm:~/cross/x86_64-pc-solaris/pcre-8.37/lib$
Any idea how I can get gcc to build .so files for Apache?