From 387e9dcc747ca260433ce707e2339001bd329439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 17 Nov 2004 23:02:31 +0100 Subject: [PATCH] Try plain nm if nm -g doesn't work. Rev: src/nettle/testsuite/symbols-test:1.7 --- testsuite/symbols-test | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testsuite/symbols-test b/testsuite/symbols-test index b992f153..43d18736 100755 --- a/testsuite/symbols-test +++ b/testsuite/symbols-test @@ -7,13 +7,15 @@ if [ -z "$srcdir" ] ; then fi # * nm on aix seems to generate bogus outbut including random binary -# data. Using -g is a workaround to get rid of that. Hope nm -g is -# portable enough. - +# data. Using -g is a workaround to get rid of that. But nm -g +# doesn't work on Solaris-2.4, so try nm -g first, and plain nm if +# -g isn't recognized. +# # * gcc on x86 generates functions like __i686.get_pc_thunk.bx in pic # code. -nm -g ../libnettle.a | grep ' [DRT] ' | egrep -v '( |^)\.?_?(_?nettle_|memxor)|get_pc_thunk' \ +( nm -g ../libnettle.a || nm ../libnettle.a ) \ + | grep ' [DRT] ' | egrep -v '( |^)\.?_?(_?nettle_|memxor)|get_pc_thunk' \ | sort -k3 > test1.out if [ -s test1.out ] ; then -- GitLab