Re: Portably setting library search paths by passing -R or -rpath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/3/5 Frank Lahm <franklahm@xxxxxxxxxxxxxx>:
> Hello all,
>
> in our package (netatalk) we consume Berkeley-DB.
> We have a configure option --with-bdb that can take a <path>
>
> In order to properly test and use the library at <path>, we must pass
> -R <path> or -Wl,-rpath=<path> with LDFLAGS/CFLAGS on some (maybe
> all?) platforms.

Well, a little bit more of digging, thinking, googling and I think I
know what to do.

I have two stages where I must be able to compile, link and run code
using the lib:
A. conftest code at configure time
B. the build product at runtime (of course)

B is working by means of autoconf/libtool.
A is giving me problems because afaict as described I must inject -R
or -rpath depending on the environment.

Presumably I should be able to use LD_LIBRARY_PATH instead to solve A,
which afaict should be quite portable.

Correct? Portable?

Thanks!

-Frank


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux