building executables on darwin, or other systems which use
hardcode_automatic. It may break our wrapper scripts.
+2005-02-03 Peter O'Gorman <peter@pogma.com>
+
+ * ltmain.in [darwin]: Don't add installed libs to temp_rpath when
+ building executables on darwin, or other systems which use
+ hardcode_automatic. It may break our wrapper scripts.
+
2005-02-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* ltmain.in, libtoolize.in: Exit with nonzero status on write failures
# it will not redefine variables installed, or shouldnotlink
installed=yes
shouldnotlink=no
+ avoidtemprpath=
+
# Read the .la file
case $lib in
dir="$libdir"
absdir="$libdir"
fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
else
if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
dir="$ladir"
if test -n "$library_names" &&
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
# We need to hardcode the library path
- if test -n "$shlibpath_var"; then
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
# Make sure the rpath contains only unique directories.
case "$temp_rpath " in
*" $dir "*) ;;