Adding linker flags in .pc files

Matt Hoosier mwhoosier at gmail.com
Fri Apr 28 13:25:10 PDT 2006


On 4/28/06, Thiago Macieira <thiago.macieira at trolltech.com> wrote:
> 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.

This is happening inside Scratchbox (a chroot environment using qemu
to launch target-CPU processes as needed). The whole filesystem there
is dedicated to binaries for the target architecture.


>
> --
> Thiago José Macieira - thiago.macieira AT trolltech.com
> Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway
>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
>
>


More information about the dbus mailing list