I would like to add an RPATH with $ORIGIN (supported on Solaris and
GLIBC platforms), but libtool complains that an absolute path is
needed. A following trivial fix to ltmain.in fixes the problem. The
patch is against the top of the multi-language-branch.
------------ ltmain.in patch start ------------------------------------
diff -u -r1.200.2.39 ltmain.in
--- ltmain.in 2000/10/02 01:24:01 1.200.2.39
+++ ltmain.in 2000/10/10 06:17:59
@@ -951,9 +951,9 @@
continue
;;
rpath | xrpath)
- # We need an absolute path.
+ # We need an absolute path unless it's a $ORIGIN directive
case "$arg" in
- [\\/]* | [A-Za-z]:[\\/]*) ;;
+ [\\/]* | [A-Za-z]:[\\/]* | $ORIGIN*) ;;
*)
$echo "$modename: only absolute run-paths are allowed" 1>&2
exit 1
------------ ltmain.in patch end -------------------------------------
While we are on this topic, how about modifying libtool to add a
$ORIGIN in a program RPATH instead of an hardcoded path if
possible? This case should be trivial when libdir and bindir are
subdirectories of prefix.
Ganesan
--
R. Ganesan ([EMAIL PROTECTED]) | Ph: 91-80-5721856 Ext: 2149
Novell India Development Center. | #include <std_disclaimer.h>
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool