]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Check symbols also in libhogweed.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 5 Jan 2008 22:54:35 +0000 (23:54 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 5 Jan 2008 22:54:35 +0000 (23:54 +0100)
Rev: nettle/testsuite/symbols-test:1.3

testsuite/symbols-test

index 394848eb2610c261af5d47eccba1d66cf71cd6c0..b48712628581ed4f71d381ebefc906ffcd7b647e 100755 (executable)
@@ -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
+