+2000-03-21 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+ * ltconfig.in (variables_saved_for_relink): Set to `PATH
+ $shlibpath_var $runpath_var'. If with_gcc, add gcc-related
+ environment variables. Add it to the configuration section.
+ * ltmain.in (relink_command): Expand those variables.
+
2000-03-14 Christopher A. Knight <chriskn@crt.com>
* ltconfig.in: added main() definition in compile
enable_fast_install=needless
fi
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$with_gcc" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
# Check whether we must set pic_mode to default
test -z "$pic_flag" && pic_mode=default
# On Cygwin there's no "real" PIC flag so we must build both object types
# the resulting binary.
hardcode_shlibpath_var=$hardcode_shlibpath_var
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at relink time.
+variables_saved_for_relink="$variables_saved_for_relink"
+
# Whether libtool must link a program against all its dependency libraries.
link_all_deplibs=$link_all_deplibs
# Quote the relink command for shipping.
if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ eval var_value=\$$var
+ var_value=`\$echo \"X$var_value\" | $Xsed -e "$sed_quote_subst"`
+ relink_command="$var=\"$var_value\"; export $var; $relink_command"
+ done
relink_command="cd `pwd`; $relink_command"
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
fi
test "$build_old_libs" = yes && old_library="$libname.$libext"
$show "creating $output"
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ eval var_value=\$$var
+ var_value=`\$echo \"X$var_value\" | $Xsed -e "$sed_quote_subst"`
+ relink_command="$var=\"$var_value\"; export $var; $relink_command"
+ done
# Quote the link command for shipping.
relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`