> stolz 2003/06/27 09:53:08 PDT
>
> Modified files:
> mk config.mk.in
> Log:
> 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
I don't think this is the right thing to do. CFLAGS, CPPFLAGS and
LDFLAGS are C compiler flags, so just adding them to the GHC command
line is bound to lead to trouble. I'm backing this change out for the
time being, while we discuss how to address this.
The original problem was that you can't specify an alternate location
for readline. Just adding CFLAGS etc. to SRC_HC_OPTS doesn't solve
this: the package.conf for the readline package also needs to point to
the correct location for readline. There are similar problems for GMP.
The configure script should probably discover the location of
libreadline.a, and pass this information to config.mk.
Cheers,
Simon
_______________________________________________
Cvs-fptools mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-fptools