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
ed90fffd
Commit
ed90fffd
authored
Nov 13, 2016
by
John Ericson
Committed by
GitHub
Nov 13, 2016
Browse files
Merge pull request #4105 from chpatrick/dedup
Deduplicate library directory arguments when testing libraries
parents
ad17ad99
e88ab5fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Configure.hs
View file @
ed90fffd
...
...
@@ -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