diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-10-18 22:09:19 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-10-19 10:25:14 +0100 |
commit | b6757e83c401d38e747f99314e45840907a4f60a (patch) | |
tree | 7bfbabe8d3759846d188ed1fa743a154bbc3b0db /cfg.mk | |
parent | 66504d41aa849746ec0f4f7f2dfa88f098c45f48 (diff) | |
download | coreutils-b6757e83c401d38e747f99314e45840907a4f60a.tar.xz |
maint: fixes to support improved sc_tight_scope
The gnulib provided sc_tight_scope target was ineffective,
as it was checking against an invalid blank regular expression,
and thus ignoring any extern function issues. This is now
fixed up in gnulib, and so we need to fix our scoping issues
before the next gnulib update.
* cfg.mk: Setup and document the tight_scope config variables
appropriately.
* src/selinux.h: Since declared in *_SOURCES, use the two line
form for the extern function declarations.
* src/set-fields.h: Add the extern declarations, and since declared
in noinst_HEADERS use the single line form.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -766,12 +766,18 @@ gnulib-tests_CFLAGS = $(GNULIB_TEST_WARN_CFLAGS) # Configuration to make the tight-scope syntax-check rule work with # non-recursive make. -export _gl_TS_headers = $(srcdir)/cfg.mk -_gl_TS_dir = . -_gl_TS_obj_files = src/*.$(OBJEXT) +# Note _gl_TS_headers use _single line_ extern function declarations, +# while *_SOURCES use the _two line_ form. +export _gl_TS_headers = $(noinst_HEADERS) +# Add exceptions for --enable-single-binary renamed functions. +_gl_TS_unmarked_extern_functions = main usage +_gl_TS_unmarked_extern_functions += single_binary_main_.* _usage_.* +# Headers to search for single line extern _data_ declarations. _gl_TS_other_headers = $(srcdir)/src/*.h src/*.h - # Tell the tight_scope rule about an exceptional "extern" variable. # Normally, the rule would detect its declaration, but that uses a # different name, __clz_tab. _gl_TS_unmarked_extern_vars = factor_clz_tab +# Other tight_scope settings +_gl_TS_dir = . +_gl_TS_obj_files = src/*.$(OBJEXT) |