remove GNU specific nm option from version script
Matthias Guedemann
matthias.guedemann at googlemail.com
Tue Aug 30 02:20:26 PDT 2011
hi all,
I compiled notmuch on OpenBSD and stumbled onto the usage of the GNU
specific option "--defined" to nm.
I replaced this with calling nm without options and then filtering the
output with grep
tried on OpenBSD 5.0 -current and Debian on current git head
regards
Matthias
diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index ec80196..f71afec 100644
--- a/lib/gen-version-script.sh
+++ b/lib/gen-version-script.sh
@@ -12,7 +12,7 @@ HEADER=$1
shift
printf '{\nglobal:\n'
-nm --defined $* | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \
+nm $* | grep "^[0-f][0-f]*" | awk '$3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \
while read sym; do
demangled=$(c++filt $sym)
case $demangled in
More information about the notmuch
mailing list