X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=mk%2Fconfig.mk.in;h=800c32e82e10f3cb2bbbd810fe21f11516d5da6f;hb=01abcd30e51f5f03ed795a3fbaea6e25137960a4;hp=40e5e91e92dfec18ec35dc97f470ae17f06623e8;hpb=6793a033e1ce41f77316675e8f7aa83196a9b211;p=ghc-hetmet.git diff --git a/mk/config.mk.in b/mk/config.mk.in index 40e5e91..800c32e 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -656,7 +656,6 @@ GhcPatchLevel = @GhcPatchLevel@ GhcMajVersion = @GhcMajVersion@ GhcMinVersion = @GhcMinVersion@ -ghc_ge_607 = @ghc_ge_607@ ghc_ge_609 = @ghc_ge_609@ # Canonicalised ghc version number, used for easy (integer) version @@ -687,8 +686,9 @@ else endif endif -# default C compiler flags +# default C compiler and linker flags SRC_CC_OPTS = @SRC_CC_OPTS@ +SRC_LD_OPTS = @SRC_LD_OPTS@ ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux" SRC_CC_OPTS += -G0 @@ -777,6 +777,16 @@ LD_X = @LdXFlag@ # overflowing command-line length limits. LdIsGNULd = @LdIsGNULd@ +# On MSYS, building with SplitObjs=YES fails with +# ar: Bad file number +# see #3201. We need to specify a smaller max command-line size +# to work around it. 32767 doesn't work; 30000 does. +ifeq "$(Windows)" "YES" +XARGS = xargs -s 30000 +else +XARGS = xargs +endif + # # In emergency situations, REAL_SHELL is used to perform shell commands # from within the ghc driver script, by scribbling the command line to