Tidy up some build system code
authorIan Lynagh <ian@well-typed.com>
Sun, 28 Apr 2013 21:02:11 +0000 (22:02 +0100)
committerIan Lynagh <ian@well-typed.com>
Sun, 28 Apr 2013 21:02:11 +0000 (22:02 +0100)
rts/ghc.mk

index b84c9f5..37fe806 100644 (file)
@@ -70,8 +70,8 @@ endif
 
 # collect the -l flags that we need to link the rts dyn lib.
 rts/libs.depend : $$(ghc-pkg_INPLACE)
-       "$(ghc-pkg_INPLACE)" field rts extra-libraries \
-         | sed -e 's/^extra-libraries: //' -e 's/\([a-z0-9]*\)[ ]*/-l\1 /g' > $@
+       "$(ghc-pkg_INPLACE)" --simple-output field rts extra-libraries \
+         | -e 's/\([a-z0-9]\+\)/-l\1/g' > $@
 
 
 # ----------------------------------------------------------------------------