]> Savannah Git Hosting - gnulib.git/commitdiff
maint.mk: fix compatibility with OS X nm
authorPádraig Brady <P@draigBrady.com>
Thu, 8 Jan 2015 12:18:54 +0000 (12:18 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 8 Jan 2015 12:33:50 +0000 (12:33 +0000)
* 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.

ChangeLog
top/maint.mk

index 56b75de8442eb9fe29556ac0169e4b4e9443471c..bf3216f02dcc69f6e17fd85aa07404fc718c6b17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-01-08  Pádraig Brady  <P@draigBrady.com>
+
+       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.
+
 2015-01-07  KO Myung-Hun  <komh@chollian.net>
 
        localcharset: improve charset detection on OS/2
index d21931f1bb91cb3e9968fdbb4ee6fdd52667e8eb..b6ec1b5e16d66255776a20546f798b908a237491 100644 (file)
@@ -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; } || :