Commit 23f5080c authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Add -L flags to libs.depend (fixes #7465)

Based on a patch from Peter Trommler
parent 4a55e819
......@@ -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' >> $@
# ----------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment