1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

makefiles: generate Local

Use same  exported symbols list for other generated symfile
as it appeared to be the right way for libdm.

Local {
	local:
		*;
};
This commit is contained in:
Zdenek Kabelac 2015-10-09 21:31:41 +02:00
parent 4b586ad3c2
commit 4f9e7f692e

View File

@ -497,7 +497,9 @@ EXPORTED_SYMBOLS := $(wildcard $(srcdir)/.exported_symbols.Base $(srcdir)/.expor
ifeq (,$(firstword $(EXPORTED_SYMBOLS)))
set -e; (echo "Base {"; echo " global:";\
$(SED) "s/^/ /;s/$$/;/" $<;\
echo " local:"; echo " *;"; echo "};") > $@
echo "};";\
echo "Local {"; echo " local:"; echo " *;"; echo "};";\
) > $@
else
set -e;\
R=$$(sort $^ | uniq -u);\