diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-20 09:25:50 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-20 09:33:51 +0200 |
commit | f3c7bd4004a64b6ce2c9e0f0069eedb050420c62 (patch) | |
tree | b3f2c6809871cb7c008390f5ac18e762a5f90d8d /make.tmpl.in | |
parent | 682e0c898e7fd96ff936b7113738f773335e0fff (diff) | |
download | lvm2-f3c7bd4004a64b6ce2c9e0f0069eedb050420c62.tar.gz |
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.
Diffstat (limited to 'make.tmpl.in')
-rw-r--r-- | make.tmpl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/make.tmpl.in b/make.tmpl.in index 806bde4f5..731dab7ca 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -499,7 +499,7 @@ ifeq (,$(firstword $(EXPORTED_SYMBOLS))) echo " local:"; echo " *;"; echo "};") > $@ else 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; } ;\ for i in $(EXPORTED_SYMBOLS); do\ echo "$${i##*.} {"; echo " global:";\ |