bug-mit-scheme
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-mit-scheme] [bug #40150] mit-scheme-c-9.1.1 overrides user supplied


From: Matt Birkholz
Subject: [Bug-mit-scheme] [bug #40150] mit-scheme-c-9.1.1 overrides user supplied optimization CFLAGS
Date: Thu, 03 Oct 2013 18:12:18 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:24.0) Gecko/20100101 Firefox/24.0

Follow-up Comment #1, bug #40150 (project mit-scheme):

I can find only a handful of lines where CFLAGS is touched at all, mostly to
add some -Wnitpick options (admittedly *after* CFLAGS, but so what?), or
override standard optimization options when configured with --enable-debugging
(the intention?).  Perhaps line 62 is all you meant; you were so...
unspecific.  Line 62 is only executed when ${GCC} is yes, but... maybe this
patch is all you need?

diff --git a/src/microcode/achost.ac b/src/microcode/achost.ac
index 35408bb..63e45f1 100644
--- a/src/microcode/achost.ac
+++ b/src/microcode/achost.ac
@@ -59,7 +59,7 @@ if test ${GCC} = yes; then
     LDFLAGS=${SAVED_LDFLAGS}
 
     if test ${enable_debugging} = no; then
-       CFLAGS="${CFLAGS} -O3"
+       CFLAGS="-O3 ${CFLAGS}"
     else
        CFLAGS="${CFLAGS} -O0 -g -DENABLE_DEBUGGING_TOOLS"
        LDFLAGS="${LDFLAGS} -g"


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40150>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]