]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in (exclude_expsyms): exclude symbols before sorting,
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 14 Mar 1999 06:00:49 +0000 (06:00 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 14 Mar 1999 06:00:49 +0000 (06:00 +0000)
otherwise only the sorted list will have them excluded

ChangeLog
ltmain.in

index b5666a1ccc32e9f2799bb68915eead9dbf6283e9..894d137df4df47c7d3521b81168de6c0efb8165f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltmain.in (exclude_expsyms): exclude symbols before sorting,
+       otherwise only the sorted list will have them excluded
+
        * ltconfig.in (file_magic_cmd, file_magic_test_file, freebsd-elf*, 
        bsdi4*): use full pathnames when possible
 
index 0375fcaf49e144406d264a43482cd58bd3477a4d..3272ea8fe9615449428fb88b93556c9c293a002a 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2374,6 +2374,11 @@ extern \"C\" {
            # Make sure we have at least an empty file.
            test -f "$nlist" || : > "$nlist"
 
+           if test -n "$exclude_expsyms"; then
+             egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+             $mv "$nlist"T "$nlist"
+           fi
+
            # Try sorting and uniquifying the output.
            if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
              :
@@ -2381,11 +2386,6 @@ extern \"C\" {
              grep -v "^: " < "$nlist" > "$nlist"S
            fi
 
-           if test -n "$exclude_expsyms"; then
-             egrep -v " ($exclude_expsyms)$" "$nlist"S > "$nlist"T
-             $mv "$nlist"T "$nlist"S
-           fi
-
            if test -f "$nlist"S; then
              eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
            else