From 23f5080ceb2e6809430a6ffc40f612b23aa86327 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Sun, 28 Apr 2013 22:04:04 +0100 Subject: 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(-) (limited to 'rts') 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' >> $@ # ---------------------------------------------------------------------------- -- cgit v1.2.1