summaryrefslogtreecommitdiff
path: root/rts/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-04-28 22:04:04 +0100
committerIan Lynagh <ian@well-typed.com>2013-04-28 22:04:04 +0100
commit23f5080ceb2e6809430a6ffc40f612b23aa86327 (patch)
tree7aad9e7157d4471107cf8020ec897961a17a2d35 /rts/ghc.mk
parent4a55e819ab9e5a48b02de8c0cf480086de504f38 (diff)
downloadhaskell-23f5080ceb2e6809430a6ffc40f612b23aa86327.tar.gz
Add -L flags to libs.depend (fixes #7465)
Based on a patch from Peter Trommler
Diffstat (limited to 'rts/ghc.mk')
-rw-r--r--rts/ghc.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 37fe806751..194309df77 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' >> $@
# ----------------------------------------------------------------------------