From f890f1be12b6a593b6ba8782dc1c57060d759d0d Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 20 Feb 1999 17:53:19 +0000 Subject: [PATCH] * ltmain.in: fixes for export-symbols dry-run --- ChangeLog | 3 +++ ltmain.in | 15 +++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d3663bc6..461010c83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 1999-02-20 Alexandre Oliva + * ltmain.in: fixes for export-symbols dry-run + * ltconfig.in (shlibpath_overrides_runpath): new variable; determines whether LD_LIBRARY_PATH or equivalent can be used to override a hard-coded library search path; default to unknown @@ -8,6 +10,7 @@ * ltmain.in (build_libdirs_flags, build_libdirs, build_rpath): if shlibpath_overrides_runpath is not yes, arrange that wrapper scripts create, on demand, programs that use uninstalled libraries + * doc/libtool.texi: document it * libtool.m4 (AC_LIBTOOL_DLOPEN): check for dlopen in libc before diff --git a/ltmain.in b/ltmain.in index 6af751598..75db049b6 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1963,9 +1963,10 @@ EOF # Prepare the list of exported symbols if test -z "$run" && test -z "$export_symbols"; then + $show "extracting global symbols from \`$libname'" if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then export_symbols="$objdir/$libname.exp" - $rm $export_symbols + $run $rm $export_symbols eval cmds=\"$export_symbols_cmds\" IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' for cmd in $cmds; do @@ -1975,13 +1976,15 @@ EOF done IFS="$save_ifs" if test -n "$export_symbols_regex"; then - egrep -e "$export_symbols_regex" "$export_symbols" > "$export_symbols"T - $mv "$export_symbols"T "$export_symbols" + $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"$export_symbols\"T" + $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "$export_symbols"T' + $show "$mv \"$export_symbols\"T \"$export_symbols\"" + $run eval '$mv "$export_symbols"T "$export_symbols"' fi fi - fi - if test -n "$include_expsyms"; then - $run $echo "X$include_expsyms" | $SP2NL >> "$export_symbols" + if test -n "$include_expsyms"; then + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' + fi fi # Do each of the archive commands. -- 2.47.3