]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: fixes for export-symbols dry-run
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sat, 20 Feb 1999 17:53:19 +0000 (17:53 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 20 Feb 1999 17:53:19 +0000 (17:53 +0000)
ChangeLog
ltmain.in

index 3d3663bc6233621c27979e71e79bbc7c2c6d8ea4..461010c83a198c0d80c59a979fa9d22e330882e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1999-02-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * 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
index 6af751598999a7b27dbb1c04ea8906d62bf7deee..75db049b627e62393c4b5a7a9e5cd99c94363c31 100644 (file)
--- 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.