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

Ferry Huberts (spam-protected)
Fri May 11 16:01:47 CEST 2012


I've reverted the lib64 linux makefile patch and adjusted PUD to always 
use /usr/lib

too much controversy

@Hans, yes, if we had an automake build system this wouldn't have been 
an issue; historical reasons.

On 11-05-12 15:51, Hans-Christoph Steiner wrote:
>
> On May 11, 2012, at 9:34 AM, Hans-Christoph Steiner wrote:
>
>>
>> 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.
>
> I forgot something key!  The Makefiles should be using the standard install vars for this ($prefix, libdir, pkglibdir, etc.) for this, with a default of /usr/local.  Then Fedora/64 users can do:
>
> make OS=linux prefix=/usr  libdir=/usr/lib64 install
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list