let no_hs_main = dopt Opt_NoHsMain dflags
let main_lib | no_hs_main = []
| otherwise = [ "-lHSrtsmain" ]
- rtsEnabledLib <- if dopt Opt_RtsOptsEnabled dflags
+ rtsEnabledObj <- if dopt Opt_RtsOptsEnabled dflags
then do fn <- mkExtraCObj dflags
["#include \"Rts.h\"",
"const rtsBool rtsOptsEnabled = rtsTrue;"]
#endif
++ pkg_lib_path_opts
++ main_lib
- ++ rtsEnabledLib
+ ++ rtsEnabledObj
++ pkg_link_opts
#ifdef darwin_TARGET_OS
++ pkg_framework_path_opts