-Lxxxxx/lib64
Hans de Goede
j.w.r.degoede at hhs.nl
Fri May 6 12:07:18 UTC 2005
Michael Schwendt wrote:
> On Fri, 06 May 2005 11:53:18 +0200, Hans de Goede wrote:
>
>
>>
>>Panu Matilainen wrote:
>>
>>>On Fri, 6 May 2005, Hans de Goede wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>In order to get Glide3 to build on x86_64 I need to add
>>>>-L/usr/X11R6/lib64 to the CFLAGS. Now I know (think) that adding this
>>>>for other archs is not a problem since those have xxx/lib64 it will
>>>>effectivly do nothing.
>>>>
>>>>I wonder however what will happen if I add this and leave xxx/lib in
>>>>the library-path on x86_64 and the i386 version of the library is also
>>>>installed. Will the linker do the right thing, IOW will the linker
>>>>only use x86_64 libs when linking an x86_64 app/lib?
>>>
>>>
>>>If you're setting CFLAGS from the spec itself you can use
>>>"CFLAGS=-L/usr/X11R6/%{_lib}" to get the path right.
>>>
>>> - Panu -
>>>
>>
>>Nope I'm not (setting CFLAGS from the spec) what should I do in that case?
>
>
> A possible solution: In your patch, use -L/usr/X11R6/_MULTILIB_ or
> something unique and substitute it with sed -i in %prep.
>
Erm, preferably I would just use "-L/usr/X11R6/lib -L/usr/X11R6/lib64",
on archs without /usr/X11R6/lib64 this will do nothing on archs with I
am hoping / assuming that the linker will pick the right version.
Regards,
Hans
More information about the fedora-extras-list
mailing list