From: David Bremner Date: Mon, 5 Sep 2011 03:19:32 +0000 (-0300) Subject: lib/gen-version-script.h: add getline and getdelim to notmuch.sym if needed X-Git-Tag: 0.8_rc0~3^2~3 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=9db21452721356be5169254cd7e8c0ec5b25066b;ds=sidebyside 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. --- 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"