3 # Check that all exported symbols use the nettle prefix.
5 if [ -z "$srcdir" ] ; then
11 # * nm on aix seems to generate bogus outbut including random binary
12 # data. Using -g is a workaround to get rid of that. But nm -g
13 # doesn't work on Solaris-2.4, so try nm -g first, and plain nm if
14 # -g isn't recognized.
16 # * gcc on x86 generates functions like __i686.get_pc_thunk.bx in pic
19 ( $NM -g ..
/libnettle.a ||
$NM ..
/libnettle.a
) \
20 |
grep ' [DRT] ' |
egrep -v '( |^)\.?_?(_?nettle_|memxor)|get_pc_thunk' \
21 |
sort -k3 > test1.out
23 if [ -s test1.out
] ; then
24 echo Exported symbols
in libnettle.a
, lacking the nettle prefix
:
29 if [ -s ..
/libhogweed.a
] ; then
30 ( $NM -g ..
/libhogweed.a ||
$NM ..
/libhogweed.a
) \
31 |
grep ' [DRT] ' |
egrep -v '( |^)\.?_?_?nettle_|get_pc_thunk' \
32 |
sort -k3 > test1.out
34 if [ -s test1.out
] ; then
35 echo Exported symbols
in libhogweed.a
, lacking the nettle prefix
: