apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: apr-1-config on mixed 32/64bit build server
Date Tue, 14 Apr 2009 07:44:50 GMT
Daniel.Pocock@barclayscapital.com wrote:
>  
> 
> 
>> | - the output of `apr-X-config --ld-flags' will always be .../lib or 
>> | .../lib64, depending on which version of apr-X-config was installed 
>> | most recently
>>
>> You should not add the -L path if it's part of the system 
>> search path as that'll confuse gcc in some cases.
> 
> In my case, apr is being installed to a non-standard location (under
> /opt) with some enterprise management tools (e.g. Ganglia).  Therefore,
> -L is required, and the gmond binaries (e.g. gmond) use the RPATH to
> find apr.

Only if apr-X-config hasn't been hacked, appropriately, to find the right
answer.

>> In Debian, if you want to build for another environment, use 
>> a chroot (or a VM).
> 
> What about the special case of creating 32 bit libs for an amd64
> install?  In this case, the 32 bit libs go under /usr/lib32 or something
> similar (opposite to Redhat, which puts the 64 bit libs under
> /usr/lib64)

And thus you understand why the apr project isn't seeking actively to
solve this.  Whichever answer we choose is wrong for another group of
folks, so it becomes your puzzle to solve for {insert distro here}

Mime
View raw message