From 157cecc7a3d99864c40acecfabcd8922cb9dc4b7 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 29 Jul 2002 10:42:29 +0000 Subject: [PATCH] [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. --- ghc/compiler/main/DriverPipeline.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/ghc/compiler/main/DriverPipeline.hs b/ghc/compiler/main/DriverPipeline.hs index c2d4235..944802e 100644 --- a/ghc/compiler/main/DriverPipeline.hs +++ b/ghc/compiler/main/DriverPipeline.hs @@ -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 [])) -- 1.7.10.4