[commit: ghc] master: Add -L flags to libs.depend (fixes #7465) (23f5080)
Ian Lynagh
igloo at earth.li
Mon Apr 29 00:20:32 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/23f5080ceb2e6809430a6ffc40f612b23aa86327
>---------------------------------------------------------------
commit 23f5080ceb2e6809430a6ffc40f612b23aa86327
Author: Ian Lynagh <ian at well-typed.com>
Date: Sun Apr 28 22:04:04 2013 +0100
Add -L flags to libs.depend (fixes #7465)
Based on a patch from Peter Trommler
>---------------------------------------------------------------
rts/ghc.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 37fe806..194309d 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -68,10 +68,12 @@ DTRACEPROBES_H = rts/dist/build/RtsProbes.h
rts_H_FILES += $(DTRACEPROBES_H)
endif
-# collect the -l flags that we need to link the rts dyn lib.
+# collect the -l and -L flags that we need to link the rts dyn lib.
rts/libs.depend : $$(ghc-pkg_INPLACE)
"$(ghc-pkg_INPLACE)" --simple-output field rts extra-libraries \
| -e 's/\([a-z0-9]\+\)/-l\1/g' > $@
+ "$(ghc-pkg_INPLACE)" --simple-output field rts library-dirs \
+ | -e 's/\([a-z0-9]\+\)/-L\1/g' >> $@
# ----------------------------------------------------------------------------
More information about the ghc-commits
mailing list