Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 14706] GCC uses wrong CFLAGS

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 14706] GCC uses wrong CFLAGS
  • Date: 3 Sep 2008 16:07:12 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=14706





--- Comment #2 from Fredrik Carlström <fredrik.carlstrom AT tele2.se>
2008-09-03 11:07:11 ---
I just noticed that optimizations set in sorcery didn't get through to
BOOT_CFLAGS in my previous patch. When trying to install g++ after upgrading
gcc, it failed with the bug 14071 error. I thought of the possibility to
change
the row BOOT_CFLAGS="$CFLAGS" to BOOT_CFLAGS="$CFLAGS $CFLAGS_TEMP", but that
won't work if gcc is downgraded. I've not tested this, but if nothing but the
-march value can change, the following should work:

BOOT_CFLAGS="$(echo $CFLAGS_TEMP | sed 's/-march=[^ ]*[ $]/ /') \
$(echo $CFLAGS | sed 's/^.*\(-march=[^ ]*\)[ $].*/\1/')".

Also, I do not know if the -funit-at-a-time fix is relevant on other than
x86_64 architectures.


--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



Archive powered by MHonArc 2.6.24.

Top of Page