From: Niels Möller Date: Sat, 5 Jan 2008 22:54:35 +0000 (+0100) Subject: Check symbols also in libhogweed. X-Git-Tag: nettle_2.0_release_20090608~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb894161818826068d2fd0ecca28870ed4584851;p=thirdparty%2Fnettle.git Check symbols also in libhogweed. Rev: nettle/testsuite/symbols-test:1.3 --- diff --git a/testsuite/symbols-test b/testsuite/symbols-test index 394848eb..b4871262 100755 --- a/testsuite/symbols-test +++ b/testsuite/symbols-test @@ -21,9 +21,22 @@ fi | sort -k3 > test1.out if [ -s test1.out ] ; then - echo Exported symbols lacking the nettle prefix: + echo Exported symbols in libnettle.a, lacking the nettle prefix: cat test1.out exit 1 -else - exit 0 fi + +if [ -s ../libhogweed.a ] ; then + ( nm -g ../libhogweed.a || nm ../libhogweed.a ) \ + | grep ' [DRT] ' | egrep -v '( |^)\.?_?_?nettle_|get_pc_thunk' \ + | sort -k3 > test1.out + + if [ -s test1.out ] ; then + echo Exported symbols in libhogweed.a, lacking the nettle prefix: + cat test1.out + exit 1 + fi +fi + +exit 0 +