tests: fix 'make sc_tight_scope' on cygwin
authorEric Blake <ebb9@byu.net>
Thu, 26 Mar 2009 12:39:14 +0000 (06:39 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 27 Mar 2009 12:24:48 +0000 (06:24 -0600)
* src/Makefile.am (sc_tight_scope): Ignore leading underscores in symbols.

src/Makefile.am

index 2313ed346f4bd628f643c83d87d709c2116d6069..08718b1e8140d2786f4ac2151d57f21f5697837b 100644 (file)
@@ -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; } || :