Build system corrupts LDFLAGS options

Fatih Aşıcı <[email protected]> Sun, 17 Jun 2007 19:48:26 +0300
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Hi,

I am trying to compile hugs98 with

LDFLAGS="-Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"

While compiling OpenGL stuff, somehow it changes LDFLAGS to

-Wl -Bdirect -hashvals -zdynsort

and causes the build process to fail with the following messages:

i686-pc-linux-gnu-gcc: unrecognized option `-hashvals'
i686-pc-linux-gnu-gcc: unrecognized option `-zdynsort'
cc1: error: unrecognized command line option "-Wl"
runhugs: Error occurred

How can I build hugs98 with these flags?

Thanks,
Fatih