[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Portably setting library search paths by passing -R or -rpath
From: |
Frank Lahm |
Subject: |
Portably setting library search paths by passing -R or -rpath |
Date: |
Thu, 5 Mar 2009 17:02:33 +0100 |
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.
As the correct way to give that option that most linkers will call
rpath to the compiler frontend so that it passes it to the linker
varies:
is there a portable way to do this?
Thanks!
Regards
-Frank
- Portably setting library search paths by passing -R or -rpath,
Frank Lahm <=