aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2011-09-05 00:19:32 -0300
committerGravatar David Bremner <bremner@debian.org>2011-09-05 07:44:14 -0300
commit9db21452721356be5169254cd7e8c0ec5b25066b (patch)
tree9411c690e001643474100d9d5354ca812d287308 /lib
parent80212b13294cababfb41f643765ca00bdf8e55dd (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/gen-version-script.sh1
1 files changed, 1 insertions, 0 deletions
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"