Commit e88ab5fb authored by Patrick Chilton's avatar Patrick Chilton
Browse files

Also deduplicate library directory arguments.

parent 3d9be43b
......@@ -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