diff options
| author | Liangbin Lian <jjm2473@gmail.com> | 2020-08-14 14:19:12 +0800 |
|---|---|---|
| committer | Liangbin Lian <jjm2473@gmail.com> | 2020-08-14 19:53:59 +0800 |
| commit | 3fd112e4a32c8a627037862b286294ad6f8416fd (patch) | |
| tree | 868133cefdae25724798b9ae47dcacd9f2ad509d | |
| parent | 2d1f83793447175f4e43a16ff25212b27f1d5a38 (diff) | |
lvm2: fix CE in mac
command-count.h generated by makefile was wrong
when using default shell in mac,
set shell to bash to fix it.
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit 9bb0962d6e3a2d5faf28a9624da82a936d961f19)
| -rw-r--r-- | utils/lvm2/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/lvm2/Makefile b/utils/lvm2/Makefile index f90f6ea73..c2785b6ff 100644 --- a/utils/lvm2/Makefile +++ b/utils/lvm2/Makefile @@ -52,10 +52,15 @@ endef CONFIGURE_ARGS += --disable-o_direct +ifneq ($(shell /bin/sh -c "echo -n 'X'"),X) +MAKE_SHELL = SHELL=/bin/bash +endif + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \ DESTDIR="$(PKG_INSTALL_DIR)" \ + $(MAKE_SHELL) \ install endef |
