summaryrefslogtreecommitdiff
path: root/compiler/main
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-05-20 15:40:03 +0000
committerIan Lynagh <igloo@earth.li>2010-05-20 15:40:03 +0000
commit78b2f856c526e4ae8f8e935b4333fcaf67e7ca84 (patch)
treec82348ac409ae0d6c2db124b4f7330ebaa971bc1 /compiler/main
parent3d982281f91ee40e20d03bd5c9607f032d9215a6 (diff)
downloadhaskell-78b2f856c526e4ae8f8e935b4333fcaf67e7ca84.tar.gz
Stop passing -Wl,-macosx_version_min to gcc
Fixes a build failure on OS X 10.6. When linking rts/dist/build/libHSrts-ghc6.13.20100519.dylib we got ld: symbol dyld_stub_binding_helper not defined (usually in crt1.o/dylib1.o/bundle1.o) collect2: ld returned 1 exit status
Diffstat (limited to 'compiler/main')
-rw-r--r--compiler/main/DriverPipeline.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs
index 387d5a1636..f748f7cd84 100644
--- a/compiler/main/DriverPipeline.hs
+++ b/compiler/main/DriverPipeline.hs
@@ -1689,10 +1689,6 @@ linkDynLib dflags o_files dep_packages = do
-- Build the dynamic library as a single "module", i.e. no dynamic binding
-- nonsense when referring to symbols from within the library. The NCG
-- assumes that this option is specified (on i386, at least).
- -- -Wl,-macosx_version_min -Wl,10.3
- -- Tell the linker its safe to assume that the library will run on 10.3 or
- -- later, so that it will not complain about the use of the option
- -- -undefined dynamic_lookup above.
-- -install_name
-- Mac OS/X stores the path where a dynamic library is (to be) installed
-- in the library itself. It's called the "install name" of the library.
@@ -1719,7 +1715,7 @@ linkDynLib dflags o_files dep_packages = do
++ map SysTools.Option (
md_c_flags
++ o_files
- ++ [ "-undefined", "dynamic_lookup", "-single_module", "-Wl,-macosx_version_min","-Wl,10.5",
+ ++ [ "-undefined", "dynamic_lookup", "-single_module",
"-Wl,-read_only_relocs,suppress", "-install_name", instName ]
++ extra_ld_inputs
++ lib_path_opts