mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
makefiles: use bash subshell
Avoid using make's $(shell invocation since the eval order is then somewhat different and use $$( subshell. This also fixes a problem when more then one symbol is found, since target shell has been given separate word list so the 'R' assignment would need "" around it.
This commit is contained in:
parent
682e0c898e
commit
f3c7bd4004
@ -499,7 +499,7 @@ ifeq (,$(firstword $(EXPORTED_SYMBOLS)))
|
|||||||
echo " local:"; echo " *;"; echo "};") > $@
|
echo " local:"; echo " *;"; echo "};") > $@
|
||||||
else
|
else
|
||||||
set -e;\
|
set -e;\
|
||||||
R=$(shell sort $^ | uniq -u);\
|
R=$$(sort $^ | uniq -u);\
|
||||||
test -z "$$R" || { echo "Mismatch between symbols in shared library and lists in .exported_symbols.* files: $$R"; false; } ;\
|
test -z "$$R" || { echo "Mismatch between symbols in shared library and lists in .exported_symbols.* files: $$R"; false; } ;\
|
||||||
for i in $(EXPORTED_SYMBOLS); do\
|
for i in $(EXPORTED_SYMBOLS); do\
|
||||||
echo "$${i##*.} {"; echo " global:";\
|
echo "$${i##*.} {"; echo " global:";\
|
||||||
|
Loading…
Reference in New Issue
Block a user