|
|
|
@ -55,17 +55,17 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
# determine platform dependent things |
|
|
|
|
define=""; subdir="" |
|
|
|
|
opts=""; subdir="" |
|
|
|
|
case "%{l_target}" in |
|
|
|
|
*-freebsd*) define=FREEBSD; subdir=linux ;; |
|
|
|
|
*-linux*) define=LINUX; subdir=linux ;; |
|
|
|
|
*-solaris*) define=SOLARIS; subdir=solaris ;; |
|
|
|
|
*-freebsd*) opts="-DFREEBSD"; subdir=linux ;; |
|
|
|
|
*-linux*) opts="-DLINUX"; subdir=linux ;; |
|
|
|
|
*-solaris*) opts="-DSOLARIS -lposix4"; subdir=solaris ;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
# create installation tree |
|
|
|
|
cd src/native/apache1.3 |
|
|
|
|
%{l_prefix}/sbin/apxs \ |
|
|
|
|
-D $define \ |
|
|
|
|
$opts \ |
|
|
|
|
-S CC=%{l_prefix}/bin/gcc \ |
|
|
|
|
-S LD_SHLIB=%{l_prefix}/bin/gcc \ |
|
|
|
|
-I../jk -I%{l_prefix}/libexec/jdk-sun/include \ |
|
|
|
|