Commit 157cecc7 authored by simonmar's avatar simonmar

[project @ 2002-07-29 10:42:29 by simonmar]

Add -static to the linker command line when -static is passed to GHC.

At some point we might want a way to say that Haskell libraries should
be linked statically but everything else should be linked as normal,
but since we aren't really supporting dynamic Haskell libraries at
this time, we don't need to address that yet.
parent ca667fbb
......@@ -949,6 +949,7 @@ doLink o_files = do
#endif
++ pkg_extra_ld_opts
++ extra_ld_opts
++ (if static then [ "-static" ] else [])
++ if static && not no_hs_main then
[ "-u", prefixUnderscore "Main_zdmain_closure"]
else []))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment