Sun, 05 Aug 2012 11:31:36 +0200
Solve problem leading to 'GLib must be build with -march=i486 or later.'
glib/glib.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/glib/glib.spec Sat Aug 04 22:02:31 2012 +0200 1.2 +++ b/glib/glib.spec Sun Aug 05 11:31:36 2012 +0200 1.3 @@ -115,6 +115,11 @@ 1.4 gio/Makefile.in 1.5 ;; 1.6 esac 1.7 + case "%{l_platform -t}" in 1.8 + *sun4[uv]-* ) l_cflags="$l_cflags -march=v9" ;; 1.9 + *sun*-* ) l_cflags="$l_cflags -march=v8" ;; 1.10 + *i?86-* | *amd64-* | *ia64-* ) l_cflags="$l_cflags -march=native" ;; 1.11 + esac 1.12 libs="" 1.13 %if "%{with_threads}" == "yes" 1.14 case "%{l_platform -t}" in 1.15 @@ -123,7 +128,7 @@ 1.16 esac 1.17 %endif 1.18 CC="%{l_cc}" \ 1.19 - CFLAGS="%{l_cflags -O}" \ 1.20 + CFLAGS="%{l_cflags -O} $l_cflags" \ 1.21 CPPFLAGS="%{l_cppflags}" \ 1.22 LDFLAGS="%{l_ldflags}" \ 1.23 LIBS="$libs" \