dhowells pushed to cross-gcc (f22). "Don't leak Fedora build environment compiler flags into CFLAGS_FOR_TARGET (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 7 09:08:51 UTC 2015


>From e9f346dc02116b31d4eb6a75c030b56b2b9497d7 Mon Sep 17 00:00:00 2001
From: David Howells <dhowells at redhat.com>
Date: Mon, 30 Mar 2015 13:44:44 +0100
Subject: Don't leak Fedora build environment compiler flags into
 CFLAGS_FOR_TARGET

Don't leak Fedora build environment compiler flags into CFLAGS_FOR_TARGET as
some of the -f and -m options may cause build failures when applied to
incompatible arches.

diff --git a/cross-gcc.spec b/cross-gcc.spec
index 7067e6d..f1ac1f7 100644
--- a/cross-gcc.spec
+++ b/cross-gcc.spec
@@ -464,7 +464,7 @@ function config_target () {
     CFLAGS="$OPT_FLAGS" \
     CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
     		  | sed 's/ -Werror=format-security / -Wformat -Werror=format-security /'`" \
-    CFLAGS_FOR_TARGET="`echo " $OPT_FLAGS " | sed 's/ -mtune=generic / /g'`" \
+    CFLAGS_FOR_TARGET="-g -O2 -Wall -fexceptions -fasynchronous-unwind-tables" \
     AR_FOR_TARGET=%{_bindir}/$arch-ar \
     AS_FOR_TARGET=%{_bindir}/$arch-as \
     DLLTOOL_FOR_TARGET=%{_bindir}/$arch-dlltool \
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/cross-gcc.git/commit/?h=f22&id=e9f346dc02116b31d4eb6a75c030b56b2b9497d7


More information about the scm-commits mailing list