From: Ian Lynagh Date: Thu, 24 Sep 2009 16:24:50 +0000 (+0000) Subject: We now tell the linker macosx_version_min is 10.5; trac #3521 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=abb9fe1bd8b553e63d55d14ce55fcd0539b7a965 We now tell the linker macosx_version_min is 10.5; trac #3521 We used to say 10.3, but this gives -rpath can only be used when targeting Mac OS X 10.5 or later when building shared libraries. Patch from mwotton. --- diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index c095abc..dae697d 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1640,7 +1640,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.3", "-install_name " ++ (pwd output_fn) ] + ++ [ "-undefined", "dynamic_lookup", "-single_module", "-Wl,-macosx_version_min","-Wl,10.5", "-install_name " ++ (pwd output_fn) ] ++ extra_ld_inputs ++ lib_path_opts ++ extra_ld_opts