Commit 17c5559e authored by Ian Lynagh's avatar Ian Lynagh

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.
parent caf21123
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment