Skip to content

Commit e4cc27d

Browse files
committed
Clean up linking options
1 parent 499dc54 commit e4cc27d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Setup.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ reg desc binfo hooks flags = do
4141
let
4242
desc' = desc{ library = fmap lm (library desc) }
4343
lm l = l { libBuildInfo = (libBuildInfo l)
44-
{ ldOptions = map ("-Wl,-rpath," ++) (lib : extraLibDirs (libBuildInfo l) )
44+
{ ldOptions = map ("-Wl,-rpath," ++) (extraLibDirs (libBuildInfo l) )
4545
++ ldOptions (libBuildInfo l),
46-
extraLibDirs = (pwd </> "src") : extraLibDirs (libBuildInfo l) } }
46+
extraLibDirs = lib : extraLibDirs (libBuildInfo l) } }
4747
lib
4848
| fromFlag $ regInPlace flags = pwd </> "src"
4949
| otherwise = libdir (absoluteInstallDirs desc binfo NoCopyDest)

0 commit comments

Comments
 (0)