From e15156d206cb4b4da9dd966a032a62f4bcb7c926 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 14 Mar 1999 06:00:49 +0000 Subject: [PATCH] * ltmain.in (exclude_expsyms): exclude symbols before sorting, otherwise only the sorted list will have them excluded --- ChangeLog | 3 +++ ltmain.in | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b5666a1cc..894d137df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1999-03-14 Alexandre Oliva + * 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 diff --git a/ltmain.in b/ltmain.in index 0375fcaf4..3272ea8fe 100644 --- 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 -- 2.47.3