Compiling from CVS on Sparc/Solaris
Ulf Norell
ulfn at cs.chalmers.se
Tue Oct 19 10:47:44 EDT 2004
Simon Marlow wrote:
> On 18 October 2004 18:29, Ulf Norell wrote:
>
>> A less machine dependent problem is that the configure script seems
>> to ignore the CPPFLAGS and LDFLAGS environment variables. In my mind,
>> a reasonable thing
>> would be to add these to SRC_CC_OPTS. My proposed fix is to change
>> line 820 of configure.ac to
>>
>> SRC_CC_OPTS="-O $CPPFLAGS $LDFLAGS"
>
> It's not quite that simple. Should these flags be passed to
> compilations of .hc code by GHC itself? What about C compilations
> performed by GHC? On the host or target platform or both? Since there
> are complex issues here, we prefer not to pass these flags at all and
> force the user to think about exactly what they mean.
Fair enough... The problem I'm having (which my proposed fix did in fact
not solve) is that my readline libraries are in a non-standard location.
Currently the final linking of stage1/ghc-6.2.2 (in this case) dies
complaining about not finding -lreadline. What is the right way of letting
ghc know where to look?
/ Ulf
More information about the Glasgow-haskell-bugs
mailing list