From: Ian Lynagh Date: Thu, 16 Jul 2009 13:13:09 +0000 (+0000) Subject: Don't put all of $CFLAGS into $SRC_CC_OPTS X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=17c5559e4b3f96ff2461e5fae0ac4d2f1e11bc15 Don't put all of $CFLAGS into $SRC_CC_OPTS Instead, we just put the flags we need in there (e.g. -m64 on OS X 64). This fixes a problem found by Simon M, where we were compiling everything with -g, leading to a bloated RTS. --- diff --git a/configure.ac b/configure.ac index f393ded..c6ce56c 100644 --- a/configure.ac +++ b/configure.ac @@ -175,6 +175,9 @@ then fi AC_SUBST([WithGhc]) +dnl ** Without optimization some INLINE trickery fails for GHCi +SRC_CC_OPTS="-O" + dnl-------------------------------------------------------------------- dnl * Choose host(/target/build) platform dnl-------------------------------------------------------------------- @@ -244,6 +247,8 @@ x86_64-apple-darwin) soext='.dylib' CFLAGS="$CFLAGS -m64" LDFLAGS="$LDFLAGS -m64" + SRC_CC_OPTS="$SRC_CC_OPTS -m64" + SRC_LD_OPTS="$SRC_LD_OPTS -m64" ;; esac @@ -551,12 +556,6 @@ FP_GCC_EXTRA_FLAGS dnl ** figure out how to invoke cpp directly (gcc -E is no good) AC_PROG_CPP -dnl ** Without optimization some INLINE trickery fails for GHCi -SRC_CC_OPTS="-O" - -SRC_CC_OPTS="$SRC_CC_OPTS $CFLAGS" -SRC_LD_OPTS="$SRC_LD_OPTS $LDFLAGS" - AC_SUBST(SRC_CC_OPTS) AC_SUBST(SRC_LD_OPTS)