diff options
author | Ian Lynagh <igloo@earth.li> | 2008-10-05 22:27:15 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-10-05 22:27:15 +0000 |
commit | 2659a01009d7e1cf20aad947c2e6df0396407ff7 (patch) | |
tree | a1b9d24c84e679f5ee34ea42a67a6913801ee824 /distrib | |
parent | b2a4e6bd520b414d391ab90ec5550d5e66740504 (diff) | |
download | haskell-2659a01009d7e1cf20aad947c2e6df0396407ff7.tar.gz |
Fix generating OS X installers: Set COMMAND_MODE=unix2003
If we don't specify COMMAND_MODE=unix2003 then xcodebuild defaults
to setting it to legacy, which means that ar builds archives
without a table of contents. That makes the build fail later on.
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/MacOS/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/distrib/MacOS/Makefile b/distrib/MacOS/Makefile index 35118f3970..d17e384d73 100644 --- a/distrib/MacOS/Makefile +++ b/distrib/MacOS/Makefile @@ -86,16 +86,24 @@ framework-pkg: CURRENT_PROJECT_VERSION=$(CURRENT_PROJECT_VERSION)\ SHORT_VERSION_STRING=$(SHORT_VERSION_STRING)\ FRAMEWORK_VERSION=$(FRAMEWORK_VERSION)\ - CURRENT_LIBRARY_VERSION=$(FRAMEWORK_VERSION) + CURRENT_LIBRARY_VERSION=$(FRAMEWORK_VERSION)\ + COMMAND_MODE=unix2003 xcodebuild -target GHC-systemwide install\ CURRENT_PROJECT_VERSION=$(CURRENT_PROJECT_VERSION)\ SHORT_VERSION_STRING=$(SHORT_VERSION_STRING)\ FRAMEWORK_VERSION=$(FRAMEWORK_VERSION)\ - CURRENT_LIBRARY_VERSION=$(FRAMEWORK_VERSION) + CURRENT_LIBRARY_VERSION=$(FRAMEWORK_VERSION)\ + COMMAND_MODE=unix2003 -$(RM) -f GHC-system.pmdoc/*-contents.xml $(PACKAGEMAKER) -v --doc GHC-system.pmdoc\ $(PACKAGEMAKER_TARGET) -o $(TOP)/$(PACKAGE_NAME) +# If we don't specify COMMAND_MODE=unix2003 then xcodebuild defaults +# to setting it to legacy, which means that ar builds archives +# without a table of contents. That makes the build fail later on. + + + # Instead of making 'binary-dist' a Makefile dependency, we let xcodebuild call # 'make binary-dist'. This has the advantage that xcode knows the framework # path into which the distribution should be installed and can instruct |