Skip to content

Commit

Permalink
Fix build on OS X
Browse files Browse the repository at this point in the history
sed on OS X doesn't handle \+
  • Loading branch information
Ian Lynagh committed Apr 29, 2013
1 parent 50e78da commit 8a1b7eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rts/ghc.mk
Expand Up @@ -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' >> $@


# ----------------------------------------------------------------------------
Expand Down

0 comments on commit 8a1b7eb

Please sign in to comment.