apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: [Fwd: DO NOT REPLY [Bug 28205] - expat detection broken on lib64 platforms]
Date Fri, 12 Jan 2007 11:25:14 GMT
On Fri, Jan 12, 2007 at 12:08:18AM +0100, Ruediger Pluem wrote:
> On 01/08/2007 09:38 PM, Ruediger Pluem wrote:
> > Based on r493791 by Joe I created the attached patch which smoothly applies to
> > apr-util 1.2.8. I tested this patch successfully with the following
> > environments:
> > 
> > SuSE 8.1 32 bit with libexpat installed in /usr/lib
> > SuSE 10.1 64 bit with libexpat installed in /usr/lib (32 bit) and /usr/lib64
> > (64 bit) and a 64 bit build.

Thanks for testing this out!

> I noticed that the following situation does not work as expected:
> 
> - 64 bit Linux system (SuSE 10.1 in my case)
> - 32 bit and 64 bit versions of libexpat installed with libexpat.la present
>   in /usr/lib and /usr/lib64
> - CFLAGS contain -m32 to create a 32 bit build on a 64 bit system

The only correct way to change the compiler ABI choice is to use e.g.:

CC="gcc -m32"

since there are places (as you note) where $CC will be used without 
LDFLAGS or CFLAGS.

Regards,

joe

Mime
View raw message