From 9db21452721356be5169254cd7e8c0ec5b25066b Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 5 Sep 2011 00:19:32 -0300 Subject: [PATCH] lib/gen-version-script.h: add getline and getdelim to notmuch.sym if needed If the configure script detects missing getline and/or getdelim symbols, then notmuch will use it's own versions. This patch, based on id:"87k49v12i5.fsf@pc44es141.cs.uni-magdeburg.de" by Matthias Guedemann, adds the symbols to notmuch.sym as well so they are properly exported from the library. --- lib/gen-version-script.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh index bf152cc9..76670d57 100644 --- a/lib/gen-version-script.sh +++ b/lib/gen-version-script.sh @@ -23,5 +23,6 @@ while read sym; do ;; esac done +nm $* | awk '$1 ~ "^[0-9a-fA-F][0-9a-fA-F]*$" && $2 == "T" && $3 ~ "^get(line|delim)$" {print $3 ";"}' sed -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER printf "local: *;\n};\n" -- 2.43.0