1999-03-08 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * ltmain.in (hardcode_libdir_separator, compile_rpath,
+ finalize_rpath): only substitute hardcode_libdir_flag_spec if
+ hardcode_libdirs is non-empty
+
* libtool.m4 (AC_LIBTOOL_DLOPEN): do not depend on the existence
of dlfcn.h nor on the definition of RTLD_LAZY
fi
done
# Substitute the hardcoded libdirs into the rpath.
- if test -n "$hardcode_libdir_separator"; then
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
libdir="$hardcode_libdirs"
eval rpath=\" $hardcode_libdir_flag_spec\"
fi
fi
done
# Substitute the hardcoded libdirs into the rpath.
- if test -n "$hardcode_libdir_separator"; then
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
libdir="$hardcode_libdirs"
eval rpath=\" $hardcode_libdir_flag_spec\"
fi