summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/include/ghc.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/rts/include/ghc.mk b/rts/include/ghc.mk
index 1b0fbff077..1a4a9b54af 100644
--- a/rts/include/ghc.mk
+++ b/rts/include/ghc.mk
@@ -89,10 +89,11 @@ $$(includes_$1_H_CONFIG) : mk/config.h mk/config.mk rts/include/ghc.mk | $$$$(di
# Copy the contents of mk/config.h, turning '#define PACKAGE_FOO
# "blah"' into '/* #undef PACKAGE_FOO */' to avoid clashes.
#
- @sed mk/config.h \
- -e 's,^\([ ]*\)#[ ]*define[ ][ ]*\(PACKAGE_[A-Z]*\)[ ][ ]*".*".*$$$$,\1/* #undef \2 */,' \
+ @sed \
+ -e 's,^\([ ]*\)#[ ]*define[ ][ ]*\(PACKAGE_[A-Z]*\)[ ][ ]*".*".*$$$$,\1/* #undef \2 */,' \
-e '/__GLASGOW_HASKELL/d' \
-e '/REMOVE ME/d' \
+ mk/config.h \
>> $$@
#
@echo "#endif /* __GHCAUTOCONF_H__ */" >> $$@