From 753d42944542059afee2e798624263799a7c2a5c Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 28 Jun 2000 15:56:28 +0000 Subject: [PATCH] [project @ 2000-06-28 15:56:28 by simonmar] add in the -optl arguments to the linker command line --- ghc/driver/Main.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ) ) -- 1.7.10.4