diff -r e99334bd789c -r eb5f1f7ac5ff glib/glib.spec --- a/glib/glib.spec Fri Aug 03 15:16:43 2012 +0200 +++ b/glib/glib.spec Fri Aug 03 15:21:22 2012 +0200 @@ -36,7 +36,7 @@ Group: Algorithm License: GPL Version: %{V_major}.%{V_minor} -Release: 20120713 +Release: 20120800 # package options %option with_threads yes @@ -105,10 +105,21 @@ -e 's;/gio-2\.0;/gio;g' \ -e 's;-l\(g[a-z]*\)-2\.0;-l\1;g' \ *-2.0.pc.in + %{l_shtool} subst \ + -e 's;\(#define _XOPEN_SOURCE\) 600;\1 601;' \ + glib/tests/strfuncs.c + case "%{l_platform -t}" in + *-sunos* ) + %{l_shtool} subst \ + -e 's;^\(LIBELF_LIBS =\);\1 -lelf;' \ + gio/Makefile.in + ;; + esac libs="" %if "%{with_threads}" == "yes" case "%{l_platform -t}" in *-netbsd* ) libs="-lpthread" ;; + *-sunos* ) libs="-lnsl -lsocket" ;; esac %endif CC="%{l_cc}" \ @@ -138,7 +149,7 @@ --disable-shared # build package - %{l_make} %{l_mflags} + %{l_make} %{l_mflags -O} %install # install package