Explorar el Código

correct unresolved dynamic library problems in newly released (since gtk 2.6.1) binary gtk-update-icon-cache

Michael Schloh von Bennewitz hace 21 años
padre
commit
d6b54cf776
Se han modificado 1 ficheros con 17 adiciones y 1 borrados
  1. 17 1
      gtk2/gtk2.spec

+ 17 - 1
gtk2/gtk2.spec

@@ -41,7 +41,7 @@ Class:        PLUS
 Group:        XWindow
 License:      GPL
 Version:      %{V_gtk}
-Release:      20050118
+Release:      20050121
 
 #   list of sources
 Source0:      ftp://ftp.gtk.org/pub/gtk/v%{V_gtk_major}/gtk+-%{V_gtk}.tar.gz
@@ -168,6 +168,22 @@ AutoReqProv:  no
         --enable-shared \
         --enable-static
 
+    #   create a libtool for building without shared libs
+    cp -fp libtool libtool_noshared
+    %{l_shtool} subst \
+        -e 's;\(build_libtool_libs\)=yes;\1=no;g' \
+        libtool_noshared
+
+    #   build libgtk-x11-2.0, libgdk_pixbuf2, and libgdk-x11-2.0 only statically
+    %{l_shtool} subst \
+        -e 's;^LIBTOOL = \(.*\)libtool;LIBTOOL = \1libtool_noshared;' \
+        gdk-pixbuf/Makefile.in \
+        gdk-pixbuf/Makefile \
+        gdk/Makefile.in \
+        gdk/Makefile \
+        gtk/Makefile.in \
+        gtk/Makefile
+
     #   build package
     %{l_make} %{l_mflags}