File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Cabal/Distribution/Simple Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -787,7 +787,9 @@ buildOrReplExe forRepl verbosity numJobs _pkg_descr lbi
787
787
ghcOptLinkLibPath = toNubListR $ extraLibDirs exeBi,
788
788
ghcOptLinkFrameworks = toNubListR $ PD. frameworks exeBi,
789
789
ghcOptInputFiles = toNubListR
790
- [exeDir </> x | x <- cObjs],
790
+ [exeDir </> x | x <- cObjs]
791
+ }
792
+ dynLinkerOpts = mempty {
791
793
ghcOptRPaths = rpaths
792
794
}
793
795
replOpts = baseOpts {
@@ -833,9 +835,9 @@ buildOrReplExe forRepl verbosity numJobs _pkg_descr lbi
833
835
| otherwise = doingTH && (withProfExe lbi || withDynExe lbi)
834
836
835
837
linkOpts = commonOpts `mappend`
836
- linkerOpts `mappend` mempty {
837
- ghcOptLinkNoHsMain = toFlag (not isHaskellMain)
838
- }
838
+ linkerOpts `mappend`
839
+ mempty { ghcOptLinkNoHsMain = toFlag (not isHaskellMain) } `mappend`
840
+ ( if withStaticExe then mempty else dynLinkerOpts)
839
841
840
842
-- Build static/dynamic object files for TH, if needed.
841
843
when compileForTH $
You can’t perform that action at this time.
0 commit comments