Commit 33519b31 authored by Niels Möller's avatar Niels Möller
Browse files

Allow leading underscore on mini-gmp symbols.

parent 882b1bc1
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
(Installation): Document some more configure options. (Installation): Document some more configure options.
* testsuite/symbols-test: Look for NETTLE_USE_MINI_GMP in * 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> 2015-03-26 Niels Möller <nisse@diamant.hack.org>
......
...@@ -29,7 +29,7 @@ fi ...@@ -29,7 +29,7 @@ fi
if [ -s ../libhogweed.a ] ; then if [ -s ../libhogweed.a ] ; then
PATTERN='\.?_?_?nettle_|get_pc_thunk' PATTERN='\.?_?_?nettle_|get_pc_thunk'
if grep '^#define.*NETTLE_USE_MINI_GMP.*1$' ../version.h >/dev/null ; then if grep '^#define.*NETTLE_USE_MINI_GMP.*1$' ../version.h >/dev/null ; then
PATTERN="$PATTERN|mp_|mpz_|mpn_" PATTERN="$PATTERN|_?(mp_|mpz_|mpn_)"
fi fi
( $NM -g ../libhogweed.a || $NM ../libhogweed.a ) \ ( $NM -g ../libhogweed.a || $NM ../libhogweed.a ) \
| grep ' [DRT] ' | egrep -v "( |^|\.)($PATTERN)" \ | grep ' [DRT] ' | egrep -v "( |^|\.)($PATTERN)" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment