X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FDriverPipeline.hs;h=225fc6007ea83a932a99461c5fa23204b1015a4b;hp=6c6930713d242c376c474a13b67b75b1946d0621;hb=6efacfe8bcbe66dfc3b52397ccbd34a58890520d;hpb=fa00cc50ecd1aa292657720b7594b7bdb82c970c diff --git a/compiler/main/DriverPipeline.hs b/compiler/main/DriverPipeline.hs index 6c69307..225fc60 100644 --- a/compiler/main/DriverPipeline.hs +++ b/compiler/main/DriverPipeline.hs @@ -1661,6 +1661,7 @@ linkDynLib dflags o_files dep_packages = do md_c_flags ++ o_files ++ [ "-shared", "-Wl,-Bsymbolic" ] -- we need symbolic linking to resolve non-PIC intra-package-relocations + ++ [ "-Wl,-soname," ++ takeFileName output_fn ] -- set the library soname ++ extra_ld_inputs ++ lib_path_opts ++ extra_ld_opts