Sfoglia il codice sorgente

fdatasync(3) is in librt on Solaris platforms, so don't mistakenly look in libc

Michael Schloh von Bennewitz 21 anni fa
parent
commit
9b5c4f8ad1
1 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 8 2
      openldap/openldap.spec

+ 8 - 2
openldap/openldap.spec

@@ -34,7 +34,7 @@ Class:        BASE
 Group:        Database
 License:      GPL
 Version:      2.2.22
-Release:      20050123
+Release:      20050124
 
 #   package options
 %option       with_fsl   yes
@@ -101,11 +101,17 @@ AutoReqProv:  no
 %else
     cf="%{l_cppflags}"
 %endif
+    LOCLIBS=""
+    case "%{l_platform -t}" in
+        *-sunos* )
+            LOCLIBS="-lrt"
+        ;;
+    esac
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O} `%{l_prefix}/bin/pth-config --cflags`" \
     CPPFLAGS="$cf -I`%{l_prefix}/bin/pth-config --includedir`" \
     LDFLAGS="%{l_ldflags} `%{l_prefix}/bin/pth-config --ldflags` %{l_fsl_ldflags}" \
-    LIBS="`%{l_prefix}/bin/pth-config --libs` %{l_fsl_libs}" \
+    LIBS="`%{l_prefix}/bin/pth-config --libs` %{l_fsl_libs} $LOCLIBS" \
     ./configure \
         --cache-file=./config.cache \
         --prefix=%{l_prefix} \