Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-12-10 10:34:36

[2002-12-10] Vladimir Prus wrote:

>Rene Rivera wrote:
> > [2002-11-10] Vladimir Prus wrote:
> >
> >
> >>Rene Rivera wrote:
> >>Okay.. I seem to understand this better now, thanks. One more question
> >
> > topic:
> >
> >>is there a way to hardcode the path to shared library in exe? I want it
> >>order to avoid setting LD_LIBRARY_PATH when debugging, when libraries
> >>in build directories.
> >
> >
> > Yes, you can, and this is what I do in my projects for debug binaries
> > In V1 I have this set for all my targets:
> >
> > <gcc><linkflags>"-Wl,-rpath -Wl,."
> > <gcc><linkflags>"-Wl,-rpath -Wl,$(GCC_STDLIB_DIRECTORY)"
>Hmm.. I've just tried that, and not sure this is what I want. This requires
>that all libraries are placed in the same directory as binary. What I
>is to leave all binaries and libraries in build directories, but guarantee
>that dlls are found, but somehow placing *full* path to all needed dllls.
>Is that possible?

Just add "-rpath" for each build directory path (the full path).

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at