diff options
author | Gabor Greif <ggreif@gmail.com> | 2013-02-25 18:53:31 +0100 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2013-02-25 18:55:23 +0100 |
commit | 890f4657e0edc9fa945c1e70ddf1bec1f52b7590 (patch) | |
tree | 5ab93f6f1b1fe09caceff1573f7fa87c5b8850f7 /aclocal.m4 | |
parent | cdae6654f2ba1a7d2c5711cd6ba26b0e73f4b1e1 (diff) | |
download | haskell-890f4657e0edc9fa945c1e70ddf1bec1f52b7590.tar.gz |
Split SettingsCCompilerFlags into non-link and link portions
This fixes certain older GCCs which do not accept link options when assembling or compiling:
ppc_85xx-gcc: --hash-size=31: linker input file unused because linking not done
ppc_85xx-gcc: --reduce-memory-overheads: linker input file unused because linking not done
and diagnose this to stderr.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 11c95ee017..268e6311f5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -461,10 +461,12 @@ AC_DEFUN([FP_SETTINGS], SettingsOptCommand="$OptCmd" fi fi - SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2 $CONF_GCC_LINKER_OPTS_STAGE2" + SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2" + SettingsCCompilerLinkFlags="$CONF_GCC_LINKER_OPTS_STAGE2" SettingsLdFlags="$CONF_LD_LINKER_OPTS_STAGE2" AC_SUBST(SettingsCCompilerCommand) AC_SUBST(SettingsCCompilerFlags) + AC_SUBST(SettingsCCompilerLinkFlags) AC_SUBST(SettingsLdCommand) AC_SUBST(SettingsLdFlags) AC_SUBST(SettingsArCommand) |