Commit aaead2a5 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Pass GMP objects to Ld explicitly

See #241.
parent ba108c01
......@@ -67,13 +67,12 @@ buildPackageGhciLibrary context@Context {..} = priority 2 $ do
cSrcs <- cSources context
hSrcs <- hSources context
eObjs <- extraObjects context
let cObjs = map (objFile context) cSrcs
hObjs = [ path -/- src <.> osuf way | src <- hSrcs ]
gObjs = [ gmpObjects -/- "*.o" | package == integerGmp ]
objs = cObjs ++ hObjs
when (package == integerGmp) $ orderOnly [gmpLibraryH]
objs = cObjs ++ hObjs ++ eObjs
need objs
build $ Target context Ld (objs ++ gObjs) [obj]
build $ Target context Ld objs [obj]
-- TODO: Get rid of code duplication and simplify. See also src2dep.
-- Given a 'Context' and a 'FilePath' to a source file, compute the 'FilePath'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment