]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(sc_tight_scope): Adjust to catch any
authorJim Meyering <jim@meyering.net>
Mon, 28 Mar 2005 19:22:36 +0000 (19:22 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 28 Mar 2005 19:22:36 +0000 (19:22 +0000)
new declarations like that of stty.c's `speeds'.

src/Makefile.am

index 5e8575f433dd06961bafc9d4fa70bf6613c915ae..24ca5e571a065fef70a474de9a2773257033a46a 100644 (file)
@@ -326,9 +326,11 @@ sc_tight_scope: $(all_programs)
            | grep -Ev -f $$t &&                                        \
          { echo 'the above functions should have static scope' 1>&2;   \
            exit 1; } || : ;                                            \
-       printf '^program_name$$\n' > $$t;                               \
+       ( printf '^program_name$$\n';                                   \
+         sed -n 's/^extern int \([^ ][^ ]*\);$$/^\1$$/p'               \
+           $(noinst_HEADERS) ) > $$t;                                  \
        nm -e *.$(OBJEXT)                                               \
-           | sed -n 's/.* B //p'                                       \
+           | sed -n 's/.* [BD] //p'                                    \
            | grep -Ev -f $$t &&                                        \
          { echo 'the above variables should have static scope' 1>&2;   \
            exit 1; } || :