From: simonmar Date: Wed, 28 Jun 2000 15:56:28 +0000 (+0000) Subject: [project @ 2000-06-28 15:56:28 by simonmar] X-Git-Tag: Approximately_9120_patches~4125 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=753d42944542059afee2e798624263799a7c2a5c [project @ 2000-06-28 15:56:28 by simonmar] add in the -optl arguments to the linker command line --- diff --git a/ghc/driver/Main.hs b/ghc/driver/Main.hs index 02783f9..62643fc 100644 --- a/ghc/driver/Main.hs +++ b/ghc/driver/Main.hs @@ -1550,10 +1550,12 @@ do_link o_files unknown_srcs = do -- probably _stub.o files extra_ld_inputs <- readIORef ld_inputs + -- opts from -optl- + extra_ld_opts <- getOpts opt_l + run_something "Linker" (unwords ([ ln, verb, "-o", output_fn ] - -- ToDo: -u options ++ o_files ++ unknown_srcs ++ extra_ld_inputs @@ -1562,6 +1564,7 @@ do_link o_files unknown_srcs = do ++ pkg_lib_path_opts ++ pkg_lib_opts ++ pkg_extra_ld_opts + ++ extra_ld_opts ) )