[Olsr-dev] [PATCH v2 1/2] linux: use /usr/lib64 on 64bit machines if it exists

Hans-Christoph Steiner (spam-protected)
Fri May 11 15:34:22 CEST 2012


On May 11, 2012, at 6:35 AM, Ferry Huberts wrote:

> 
> 
> On 11-05-12 12:27, Henning Rogge wrote:
>> On 05/11/2012 12:26 PM, Ferry Huberts wrote:
>>> my change will only use lib64 when the system on which the compilation
>>> is performed has a lib64
>> 
>> But thats wrong... whats important is the target system, not the
>> compiler platform (which are different with crosscompilation).
>> 
>> the new script will use lib64 on your Fedora64, even when crosscompiling
>> for android (for example).
>> 
>> Henning Rogge
>> 
> 
> 
> then we must solve it differently because when I do a
>  make DESTDIR=/some/path/for/packaging install_all
> then lib64 is never used, which is wrong as well

I think the answer remains what I started with: this is a distro-specific issue the should be handled in that distro's packaging. Debian and derivs also have multi-arch support, but without losing transparent /usr/lib support nor requiring /usr/lib64.

You could include the .spec file for building the .rpm, then people who need it in /usr/lib64 can build the .rpm.

This reminds me, actually, the UNIX Makefiles should not be installing into /usr by default anyway, but /usr/local.  /usr has been for decades the location for system packages, and /usr/local for other packages.  Does Fedora require /usr/local/lib64?  Perhaps /usr/local/lib will work OK there.

.hc



More information about the Olsr-dev mailing list