apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <...@manyfish.co.uk>
Subject Re: [PATCH] Re: setting LDFLAGS for apr build; won't be set in apr-config; why?
Date Tue, 30 Mar 2004 14:51:34 GMT
On Tue, Mar 30, 2004 at 09:25:30AM -0500, Jeff Trawick wrote:
> here's a more concrete example
> 
> apr HEAD
> RHEL 3.0 for PPC
> libtool 1.4.3 from system install
> 
> CFLAGS="-Xcompiler -m64" LDFLAGS="-Xcompiler -m64 -Xlinker -melf64ppc" \ 
> ./configure

Isn't that equivalent to the simpler CC="gcc -m64" ./configure?

> it builds, test programs work, but apr-config just has -pthread for CFLAGS 
> and nothing for LDFLAGS
>
> but in build/apr_rules.mk, CFLAGS and LDFLAGS are set as I supplied them
> 
> are there some build mysteries which explain why the attached patch should 
> not be committed?

There are probably other cases where the current behaviour is desirable,
e.g.  if you want to use some special flag to link libapr which is only
appropriate when linking a shared library (and can't be used when
linking programs).

The "change it and see who complains" route sounds fine :)

joe

Mime
View raw message