Skip to content

Commit

Permalink
Make sure we generate position independent code
Browse files Browse the repository at this point in the history
This closes #244, I think, pending review by Duncan.
  • Loading branch information
edsko committed Sep 12, 2014
1 parent 454f412 commit 820f980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IdeSession/Cabal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -758,14 +758,14 @@ runComponentCc RunCcArgs{ rcPackageDBStack = configPackageDBStack
vanillaCcOpts = (componentCcGhcOptions verbosity lbi
libBi clbi pref absC)`mappend` mempty {
-- ghc ignores -odir for .o files coming from .c files
ghcOptExtra = ["-o", absObj] ++ rcOptions
ghcOptExtra = ["-o", absObj] ++ rcOptions,
ghcOptFPic = Setup.toFlag True
}
profCcOpts = vanillaCcOpts `mappend` mempty {
ghcOptProfilingMode = Setup.toFlag True,
ghcOptObjSuffix = Setup.toFlag "p_o"
}
sharedCcOpts = vanillaCcOpts `mappend` mempty {
ghcOptFPic = Setup.toFlag True,
ghcOptDynLinkMode = Setup.toFlag GhcDynamicOnly,
ghcOptObjSuffix = Setup.toFlag "dyn_o",
ghcOptExtra = ["-o", replaceExtension absObj "dyn_o"]
Expand Down

0 comments on commit 820f980

Please sign in to comment.