Parcourir la source

modifying package: glib2-2.12.0 20060705 -> 20060721

Christoph Schug il y a 19 ans
Parent
commit
904873f1c1
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      glib2/glib2.spec

+ 9 - 1
glib2/glib2.spec

@@ -37,7 +37,7 @@ Class:        BASE
 Group:        Algorithm
 License:      GPL
 Version:      %{V_glib2_major}.%{V_glib2_minor}
-Release:      20060705
+Release:      20060721
 
 #   package options
 %option       with_threads  yes
@@ -96,10 +96,18 @@ AutoReqProv:  no
         *-2.0.pc.in
 
 %build
+    libs=""
+%if "%{with_threads}" == "yes"
+    case "%{l_platform -t}" in
+        *-freebsd* ) libs="-lpthread" ;;
+        *-netbsd*  ) libs="-lpthread" ;;
+    esac
+%endif
     CC="%{l_cc}" \
     CFLAGS="%{l_cflags -O}" \
     CPPFLAGS="%{l_cppflags}" \
     LDFLAGS="%{l_ldflags}" \
+    LIBS="$libs" \
     PERL="%{l_prefix}/bin/perl" \
     PERL_PATH="%{l_prefix}/bin/perl" \
     ./configure \