[project @ 2003-06-27 16:53:07 by stolz]
authorstolz <unknown>
Fri, 27 Jun 2003 16:53:07 +0000 (16:53 +0000)
committerstolz <unknown>
Fri, 27 Jun 2003 16:53:07 +0000 (16:53 +0000)
Push down CPPFLAGS, CFLAGS and LDFLAGS.

Now ./configure should pick up those flags and hopefully make life a bit
easier for packagers. Notice that some flags which work fine for 'ld'
won't work with ghc, e.g. the combination "-Wl,-E" which 'gtk-config --libs'
suggests, so you'll usually want to set only -I or -L.

> ghc -Wl,-E
ghc-6.0: unrecognised flags: -Wl,-E

http://www.haskell.org/pipermail/glasgow-haskell-users/2003-June/005243.html

mk/config.mk.in

index 6bfc628..0730759 100644 (file)
@@ -542,7 +542,8 @@ endif
 #
 #      SRC_HC_OPTS += -O
 
-SRC_HC_OPTS += -H16m -O
+SRC_HC_OPTS += @CPPFLAGS@ @CFLAGS@ -H16m -O
+EXTRA_LD_OPTS+=        @LDFLAGS@
 
 # These flags make flex 8-bit
 SRC_FLEX_OPTS  += -8