Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
e88ab5fb
Commit
e88ab5fb
authored
Nov 12, 2016
by
Patrick Chilton
Browse files
Also deduplicate library directory arguments.
parent
3d9be43b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Configure.hs
View file @
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment