pkgs/build-support/cabal: disable the split objects feature on Darwin by default

According to <http://hackage.haskell.org/trac/ghc/ticket/4013>, this
feature won't work with XCode versions older than 3.2.

This means that Mac users will have considerably larger binaries because
some build-time dependencies (such as HTTP) will be mis-detected as
run-time dependencies.
This commit is contained in:
Peter Simons 2013-03-08 13:29:34 +01:00
parent 856f6c2aea
commit fcd895afb3

View file

@ -88,7 +88,7 @@
jailbreak = false;
# pass the '--enable-split-objs' flag to cabal in the configure stage
enableSplitObjs = true;
enableSplitObjs = !stdenv.isDarwin; # http://hackage.haskell.org/trac/ghc/ticket/4013
# pass the '--enable-tests' flag to cabal in the configure stage
# and run any regression test suites the package might have