[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Adding linker flags in .pc files
From:       Thiago Macieira <thiago.macieira () trolltech ! com>
Date:       2006-04-28 20:08:49
Message-ID: 200604282208.51030.thiago.macieira () trolltech ! com
[Download RAW message or body]


Matt Hoosier wrote:
>I meant to add here that one workaround would be to insert
>"-Wl,-rpath,/usr/lib" into the default linker flags inside dbus-1.pc.
>I'm curious whether anybody counsels this to be a reasonable solution,
>or just masking a bigger problem.

This is not a reasonable solution. /usr/lib is always searched, so it 
doesn't have to be added to the linker flags.

You must be seeing this problem only because you're using a 
cross-compilation toolchain. In that case, I seriously doubt you want to 
use the libraries installed in /usr/lib, because they are probably the 
wrong arch.

-- 
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic