From 34c956afc19cd8a1023444ee333983e8b840e759 Mon Sep 17 00:00:00 2001 From: Alasdair G Kergon Date: Wed, 26 Aug 2015 13:36:23 +0100 Subject: [PATCH] make.tmpl: Mark internal sharedlib symbols local. Since commit 797c18d543947f4c2777b4dcf3ceff57cb55352b some internal symbols have been exported in shared libraries by mistake because 'local: *' got lost. Fix the shell script not to compare the whole filename with 'Base' --- WHATS_NEW | 1 + make.tmpl.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index ea50997ee..d98bcc8e3 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.129 - =================================== + Fix shared library generation to stop exporting internal functions.(2.02.120) Accept --cachemode with lvconvert. Fix and improve reporting properties of cache-pool. Enable usage of --cachepolicy and --cachesetting with lvconvert. diff --git a/make.tmpl.in b/make.tmpl.in index dbc839add..2ce2faf22 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -505,7 +505,7 @@ else for i in $$(echo $(EXPORTED_SYMBOLS) | tr ' ' '\n' | sort -rnt_ -k5 ); do\ echo "$${i##*.} {"; echo " global:";\ $(SED) "s/^/ /;s/$$/;/" $$i;\ - test "$$i" = Base && { echo " local:"; echo " *;"; };\ + test "$${i##*.}" = Base && { echo " local:"; echo " *;"; };\ echo "};";\ done > $@ endif