Explorar el Código

add thread support and allow it to be disabled

Ralf S. Engelschall hace 23 años
padre
commit
f0a8c3bcd2
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  1. 10 3
      glib/glib.spec

+ 10 - 3
glib/glib.spec

@@ -33,7 +33,10 @@ Distribution: OpenPKG [BASE]
 Group:        Algorithm
 License:      GPL
 Version:      1.2.10
-Release:      20020829
+Release:      20030131
+
+#   package options
+%option       with_threads  yes
 
 #   list of sources
 Source0:      ftp://ftp.gtk.org/pub/gtk/v1.2/glib-%{version}.tar.gz
@@ -61,8 +64,12 @@ AutoReqProv:  no
     ./configure \
         --prefix=%{l_prefix} \
         --disable-debug \
-        --disable-threads \
-        --disable-shared
+        --disable-shared \
+%if "%{with_threads}" == "yes"
+        --enable-threads
+%else
+        --disable-threads
+%endif
     %{l_make} %{l_mflags -O}
 
 %install