summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-01-08 12:18:54 +0000
committerPádraig Brady <P@draigBrady.com>2015-01-08 12:33:50 +0000
commitd5e367c52d465a36650d0f4e2d370d1719750ab1 (patch)
treea09b2ff49560f052ec6ab79c47ee7b4655910acc /top
parent9bb70e04d414eed9fd805788083dc24d01dcac62 (diff)
downloadgnulib-d5e367c52d465a36650d0f4e2d370d1719750ab1.tar.gz
maint.mk: fix compatibility with OS X nm
* top/maint.mk (_gl_tight_scope): Use the -g option to show exported items rather than the -e option which is ignored on all platforms except OS X where it gives an error. Reported by Assaf Gordon.
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/top/maint.mk b/top/maint.mk
index d21931f1bb..b6ec1b5e16 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -1648,14 +1648,14 @@ _gl_tight_scope: $(bin_PROGRAMS)
perl -lne \
'$(_gl_TS_function_match) and print "^$$1\$$"' $$hdr; \
) | sort -u > $$t; \
- nm -e $(_gl_TS_obj_files)|$(SED) -n 's/.* T //p'|grep -Ev -f $$t \
+ nm -g $(_gl_TS_obj_files)|$(SED) -n 's/.* T //p'|grep -Ev -f $$t \
&& { echo the above functions should have static scope >&2; \
exit 1; } || : ; \
( printf '^%s$$\n' '__.*' $(_gl_TS_unmarked_extern_vars); \
perl -lne '$(_gl_TS_var_match) and print "^$$1\$$"' \
$$hdr $(_gl_TS_other_headers) \
) | sort -u > $$t; \
- nm -e $(_gl_TS_obj_files) | $(SED) -n 's/.* [BCDGRS] //p' \
+ nm -g $(_gl_TS_obj_files) | $(SED) -n 's/.* [BCDGRS] //p' \
| sort -u | grep -Ev -f $$t \
&& { echo the above variables should have static scope >&2; \
exit 1; } || :