X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fgen-version-script.sh;fp=lib%2Fgen-version-script.sh;h=0000000000000000000000000000000000000000;hp=c98a07b0c701e70f4963c17c63c42a19de2e6cf0;hb=bc11759dd1fd198661657b741bc0143c9af309a4;hpb=544b8ec90e54e3921beb26823e255fed6707bc12 diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh deleted file mode 100644 index c98a07b0..00000000 --- a/lib/gen-version-script.sh +++ /dev/null @@ -1,28 +0,0 @@ -set -eu - -# we go through a bit of work to get the unmangled names of the -# typeinfo symbols because of -# https://sourceware.org/bugzilla/show_bug.cgi?id=10326 - -if [ $# -lt 2 ]; then - echo Usage: $0 header obj1 obj2 obj3 - exit 1; -fi - -HEADER=$1 -shift - -printf '{\nglobal:\n' -nm $* | awk '$1 ~ "^[0-9a-fA-F][0-9a-fA-F]*$" && $3 ~ "Xapian.*Error" {print $3}' | sort | uniq | \ -while read sym; do - demangled=$(c++filt $sym) - case $demangled in - typeinfo*) - printf "\t$sym;\n" - ;; - *) - ;; - esac -done -sed -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER -printf "local: *;\n};\n"