Commit c82d8533 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Fix the flag used to force linking when we are making a shared library

This is a correction to the patch:
* When linking a shared library with --make, always do the link step
which used the wrong flag in making the decision. It used -dynamic
whereas the correct flag is -shared.
parent 8e0adc02
......@@ -888,7 +888,7 @@ load2 how_much mod_graph = do
main_mod = mainModIs dflags
a_root_is_Main = any ((==main_mod).ms_mod) mod_graph
do_linking = a_root_is_Main || no_hs_main || not StaticFlags.opt_Static
do_linking = a_root_is_Main || no_hs_main || ghcLink dflags == LinkDynLib
when (ghcLink dflags == LinkBinary
&& isJust ofile && not do_linking) $
Supports Markdown
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