]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Allow leading underscore on mini-gmp symbols. nettle_3.1rc2
authorNiels Möller <nisse@lysator.liu.se>
Mon, 30 Mar 2015 21:34:42 +0000 (23:34 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 30 Mar 2015 21:34:42 +0000 (23:34 +0200)
ChangeLog
testsuite/symbols-test

index 9a4d62f9c6410c6f3c3b0d5c87a851e8be011202..2555f88977ec5659f8838027d47459eb9731743b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,7 +8,8 @@
        (Installation): Document some more configure options.
 
        * testsuite/symbols-test: Look for NETTLE_USE_MINI_GMP in
-       version.h, not bignum.h.
+       version.h, not bignum.h. Allow leading underscore on mini-gmp
+       symbols.
 
 2015-03-26  Niels Möller  <nisse@diamant.hack.org>
 
index 41def8f81986811fe3eed492fe1d20f5a1a0d7a1..051d3d2218b9a8d52a6ff8c8f2cc9239ee49c57e 100755 (executable)
@@ -29,7 +29,7 @@ fi
 if [ -s ../libhogweed.a ] ; then
     PATTERN='\.?_?_?nettle_|get_pc_thunk'
     if grep '^#define.*NETTLE_USE_MINI_GMP.*1$' ../version.h >/dev/null ; then
-       PATTERN="$PATTERN|mp_|mpz_|mpn_"
+       PATTERN="$PATTERN|_?(mp_|mpz_|mpn_)"
     fi
     ( $NM -g ../libhogweed.a || $NM ../libhogweed.a ) \
        | grep ' [DRT] ' | egrep -v "( |^|\.)($PATTERN)" \