Commit 8a1b7eb6 authored by ian@well-typed.com's avatar ian@well-typed.com
Browse files

Fix build on OS X

sed on OS X doesn't handle \+
parent 50e78daf
......@@ -69,11 +69,13 @@ rts_H_FILES += $(DTRACEPROBES_H)
endif
# collect the -l and -L flags that we need to link the rts dyn lib.
# Note that, as sed on OS X doesn't handle \+, we use [^ ][^ ]* rather
# than [^ ]\+
rts/libs.depend : $$(ghc-pkg_INPLACE)
"$(ghc-pkg_INPLACE)" --simple-output field rts extra-libraries \
| sed -e 's/\([^ ]\+\)/-l\1/g' > $@
| sed -e 's/\([^ ][^ ]*\)/-l\1/g' > $@
"$(ghc-pkg_INPLACE)" --simple-output field rts library-dirs \
| sed -e 's/\([^ ]\+\)/-L\1/g' >> $@
| sed -e 's/\([^ ][^ ]*\)/-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