summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-03-26 06:39:14 -0600
committerEric Blake <ebb9@byu.net>2009-03-27 06:24:48 -0600
commita8fde98844d33d2fae0366e4b3fdb086d2d497ce (patch)
treedad284f700980e4d535541115fae45324653a895
parente412e5cb495627202d5697cb8fe042b761e2b7d5 (diff)
downloadcoreutils-a8fde98844d33d2fae0366e4b3fdb086d2d497ce.tar.xz
tests: fix 'make sc_tight_scope' on cygwin
* src/Makefile.am (sc_tight_scope): Ignore leading underscores in symbols.
-rw-r--r--src/Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 2313ed346..08718b1e8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -448,6 +448,7 @@ sc_tight_scope: $(all_programs)
) | $(ASSORT) -u | sed 's/^/^/;s/$$/$$/' > $$t; \
nm -e *.$(OBJEXT) \
| sed -n 's/.* T //p' \
+ | sed 's/^_//' \
| grep -Ev -f $$t && \
{ echo 'the above functions should have static scope' 1>&2; \
exit 1; } || : ; \
@@ -456,6 +457,7 @@ sc_tight_scope: $(all_programs)
$$hdr *.h ) | $(ASSORT) -u > $$t; \
nm -e *.$(OBJEXT) \
| sed -n 's/.* [BD] //p' \
+ | sed 's/^_//' \
| grep -Ev -f $$t && \
{ echo 'the above variables should have static scope' 1>&2; \
exit 1; } || :