We now tell the linker macosx_version_min is 10.5; trac #3521
authorIan Lynagh <igloo@earth.li>
Thu, 24 Sep 2009 16:24:50 +0000 (16:24 +0000)
committerIan Lynagh <igloo@earth.li>
Thu, 24 Sep 2009 16:24:50 +0000 (16:24 +0000)
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.

compiler/main/DriverPipeline.hs

index c095abc..dae697d 100644 (file)
@@ -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