Commit ed90fffd authored by John Ericson's avatar John Ericson Committed by GitHub
Browse files

Merge pull request #4105 from chpatrick/dedup

Deduplicate library directory arguments when testing libraries
parents ad17ad99 e88ab5fb
......@@ -1660,8 +1660,10 @@ checkForeignDeps pkg lbi verbosity = do
commonLdArgs = [ "-L" ++ dir | dir <- collectField PD.extraLibDirs ]
++ collectField PD.ldOptions
++ [ "-L" ++ dir
| dep <- deps
, dir <- Installed.libraryDirs dep ]
| dir <- ordNub [ dir
| dep <- deps
, dir <- Installed.libraryDirs dep ]
]
--TODO: do we also need dependent packages' ld options?
makeLdArgs libs = [ "-l"++lib | lib <- libs ] ++ commonLdArgs
......
Markdown is supported
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