[PATCH 1/2] build: add canonicalize_file_name to symbols exported from libnotmuch.so

Subject: [PATCH 1/2] build: add canonicalize_file_name to symbols exported from libnotmuch.so

Date: Wed, 9 Apr 2014 08:24:02 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


This is needed for our compat version of canonicalize_file_name to be used.
---
 lib/gen-version-script.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gen-version-script.sh b/lib/gen-version-script.sh
index 76670d5..64a7374 100644
--- a/lib/gen-version-script.sh
+++ b/lib/gen-version-script.sh
@@ -23,6 +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 ";"}'
+nm $* | awk '$1 ~ "^[0-9a-fA-F][0-9a-fA-F]*$" && $2 == "T" && $3 ~ "^(getline|getdelim|canonicalize_file_name)$" {print $3 ";"}'
 sed  -n 's/^[[:space:]]*\(notmuch_[a-z_]*\)[[:space:]]*(.*/ \1;/p' $HEADER
 printf "local: *;\n};\n"
-- 
1.9.0


Thread: