فهرست منبع

try to fix building under Solaris: Schuggi try again!

Ralf S. Engelschall 24 سال پیش
والد
کامیت
ae7ea53be2
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 5 5
      tomcat-adapter/tomcat-adapter.spec

+ 5 - 5
tomcat-adapter/tomcat-adapter.spec

@@ -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 \