[project @ 2005-05-13 01:46:20 by dons]
authordons <unknown>
Fri, 13 May 2005 01:46:20 +0000 (01:46 +0000)
committerdons <unknown>
Fri, 13 May 2005 01:46:20 +0000 (01:46 +0000)
Have SplitObjs=YES by default only on i386, powerpc and sparc.
Lowers the barrier to porting just a little.

mk/config.mk.in

index c98a0a0..07ebbba 100644 (file)
@@ -348,11 +348,14 @@ StripLibraries=NO
 #      Don't use -split-objs in in GhcLibHcOpts, because the build
 #              system needs to do other special magic if you are
 #              doing object-file splitting
 #      Don't use -split-objs in in GhcLibHcOpts, because the build
 #              system needs to do other special magic if you are
 #              doing object-file splitting
+ifneq "$(findstring $(HostArch_CPP), i386 powerpc sparc)" ""
+SplitObjs=YES
+else
+SplitObjs=NO
+endif
 
 # Don't split object files for libs if we're building DLLs, or booting from
 # .hc files.
 
 # Don't split object files for libs if we're building DLLs, or booting from
 # .hc files.
-SplitObjs=YES
-
 ifeq "$(DLLized)" "YES"
 SplitObjs=NO
 endif
 ifeq "$(DLLized)" "YES"
 SplitObjs=NO
 endif