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
# 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
:
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