[csw-maintainers] GAR: Least invasive way to pre-pend extra lib directories to LDFLAGS/LD_OPTIONS?

Maciej (Matchek) Blizinski maciej at opencsw.org
Sun Jan 17 19:57:00 CET 2010


On Sun, Jan 17, 2010 at 5:09 PM, Sebastian Kayser <skayser at opencsw.org> wrote:
> Hi,
>
> a general GAR question. I know about EXTRA_LIBS which _appends_ the
> given directories to the default LDFLAGS and LD_OPTIONS while also
> considering a possible $ISALIST for each of these directories. Is there
> any variable which does the same, but pre-pends the given directories?
>
> For test purposes, I would like to have a binary with /opt/csw/bdb47/lib
> as the first component in the runpath (but i would like to avoid
> fiddling with LDFLAGS and LD_OPTIONS manually so to preserve as much of
> the defaults as possible).

There's a more high-level way to add paths to the runtime linker, it's
documented here:

http://sourceforge.net/apps/trac/gar/wiki/RuntimeLinkerPathes

...but it doesn't say anything about the resulting path order.



More information about the maintainers mailing list