summaryrefslogtreecommitdiff
path: root/compiler/main/SysTools.lhs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-22 13:34:26 +0100
committerIan Lynagh <igloo@earth.li>2011-04-22 13:34:26 +0100
commitd1941af03f22f52cbd806f97641243f160fbc99b (patch)
treec4de66b37d17467ee59523f9a52086aa9ae42e34 /compiler/main/SysTools.lhs
parent0d72999279cf583336416a4c76de769bfc839b97 (diff)
downloadhaskell-d1941af03f22f52cbd806f97641243f160fbc99b.tar.gz
Move the opt* fields from DynFlags into the Settings type
The pgm* fields are already in Settings
Diffstat (limited to 'compiler/main/SysTools.lhs')
-rw-r--r--compiler/main/SysTools.lhs16
1 files changed, 15 insertions, 1 deletions
diff --git a/compiler/main/SysTools.lhs b/compiler/main/SysTools.lhs
index 8bbe22774d..cd19945c0a 100644
--- a/compiler/main/SysTools.lhs
+++ b/compiler/main/SysTools.lhs
@@ -46,6 +46,7 @@ import ErrUtils
import Panic
import Util
import DynFlags
+import StaticFlags
import Exception
import Data.IORef
@@ -252,9 +253,22 @@ initSysTools mbMinusB
sPgm_sysman = top_dir ++ "/ghc/rts/parallel/SysMan",
sPgm_windres = windres_path,
sPgm_lo = (lo_prog,[]),
- sPgm_lc = (lc_prog,[])
+ sPgm_lc = (lc_prog,[]),
-- Hans: this isn't right in general, but you can
-- elaborate it in the same way as the others
+ sOpt_L = [],
+ sOpt_P = (if opt_PIC
+ then -- this list gets reversed
+ ["-D__PIC__", "-U __PIC__"]
+ else []),
+ sOpt_F = [],
+ sOpt_c = [],
+ sOpt_a = [],
+ sOpt_m = [],
+ sOpt_l = [],
+ sOpt_windres = [],
+ sOpt_lo = [],
+ sOpt_lc = []
}
}
\end{code}