# HG changeset patch # User Michael Schloh von Bennewitz # Date 1344159096 -7200 # Node ID 26ab32c5da43d8f14c7b26e18b4f47d2c3361ebd # Parent 3236236104920b408071363d49772ad56d264001 Solve problem leading to 'GLib must be build with -march=i486 or later.' diff -r 323623610492 -r 26ab32c5da43 glib/glib.spec --- a/glib/glib.spec Sat Aug 04 22:02:31 2012 +0200 +++ b/glib/glib.spec Sun Aug 05 11:31:36 2012 +0200 @@ -115,6 +115,11 @@ gio/Makefile.in ;; esac + case "%{l_platform -t}" in + *sun4[uv]-* ) l_cflags="$l_cflags -march=v9" ;; + *sun*-* ) l_cflags="$l_cflags -march=v8" ;; + *i?86-* | *amd64-* | *ia64-* ) l_cflags="$l_cflags -march=native" ;; + esac libs="" %if "%{with_threads}" == "yes" case "%{l_platform -t}" in @@ -123,7 +128,7 @@ esac %endif CC="%{l_cc}" \ - CFLAGS="%{l_cflags -O}" \ + CFLAGS="%{l_cflags -O} $l_cflags" \ CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags}" \ LIBS="$libs" \