Fix --print-docdir for relocatable builds; fixes #1226
[ghc-hetmet.git] / compiler / main / DriverPipeline.hs
index db9f671..b0e7cfa 100644 (file)
@@ -1330,8 +1330,10 @@ maybeCreateManifest dflags exe_filename = do
   rc_obj_filename <- newTempName dflags (objectSuf dflags)
 
   writeFile rc_filename $
-      "1 24 MOVEABLE PURE \"" ++ manifest_filename ++ "\"\n"
+      "1 24 MOVEABLE PURE " ++ show manifest_filename ++ "\n"
         -- magic numbers :-)
+        -- show is a bit hackish above, but we need to esacpe the
+        -- backslashes in the path.
 
   let wr_opts = getOpts dflags opt_windres
   runWindres dflags $ map SysTools.Option $
@@ -1377,7 +1379,6 @@ linkDynLib dflags o_files dep_packages = do
          , SysTools.Option "-o"
          , SysTools.FileOption "" output_fn
          , SysTools.Option "-shared"
-         , SysTools.Option "-Wl,--export-all-symbols"
          , SysTools.FileOption "-Wl,--out-implib=" (output_fn ++ ".a")
          ]
         ++ map (SysTools.FileOption "") o_files