if test "$linkmode,$pass" = "prog,link"; then
if test -n "$library_names" &&
- { test "$hardcode_into_libs" != yes ||
- test "$shlibpath_overrides_runpath" = yes ||
- test "$alldeplibs" != yes; } &&
{ test "$prefer_static_libs" = no || test -z "$old_library"; }; then
# We need to hardcode the library path
if test -n "$shlibpath_var"; then
fi
# This is a shared library
if test $linkmode = lib &&
- test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes; then
+ test $hardcode_into_libs = yes; then
# Hardcode the library path.
# Skip directories that are in the system default run-time
# search path.
if test $linkmode = lib; then
if test -n "$dependency_libs" &&
- { test "$hardcode_into_libs" = no || test $build_old_libs = yes ||
+ { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
test $link_static = yes; }; then
# Extract -R from dependency_libs
temp_deplibs=
*) finalize_rpath="$finalize_rpath $libdir" ;;
esac
done
- if test "$hardcode_into_libs" = no || test $build_old_libs = yes; then
+ if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
dependency_libs="$temp_xrpath $dependency_libs"
fi
fi
# Test again, we may have decided not to build it any more
if test "$build_libtool_libs" = yes; then
- if test "$hardcode_into_libs" != no; then
+ if test $hardcode_into_libs = yes; then
# Hardcode the library paths
hardcode_libdirs=
dep_rpath=
fi
# Make a backup of the uninstalled library when relinking
- if test "$mode" = relink &&
- test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes; then
+ if test "$mode" = relink; then
$run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
fi
IFS="$save_ifs"
# Restore the uninstalled library and exit
- if test "$mode" = relink &&
- test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes; then
+ if test "$mode" = relink; then
$run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
exit 0
fi
exit 0
fi
- if test "$hardcode_action" = relink ||
- { test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes; }; then
+ if test "$hardcode_action" = relink; then
# Fast installation is not supported
link_command="$compile_var$compile_command$compile_rpath"
relink_command="$finalize_var$finalize_command$finalize_rpath"
# Directory that this library needs to be installed in:
libdir='$install_libdir'"
- if test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes &&
- test "$installed" = no && test $need_relink = yes; then
+ if test "$installed" = no && test $need_relink = yes; then
$echo >> $output "\
relink_command=\"$relink_command\""
fi
test "X$dir" = "X$file/" && dir=
dir="$dir$objdir"
- if test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes &&
- test -n "$relink_command"; then
+ if test -n "$relink_command"; then
$echo "$modename: warning: relinking \`$file'" 1>&2
$show "$relink_command"
if $run eval "$relink_command"; then :
shift
srcname="$realname"
- test "$hardcode_into_libs" = yes &&
- test "$shlibpath_overrides_runpath" != yes &&
test -n "$relink_command" && srcname="$realname"T
# Install the shared library and build the symlinks.