lvm2: fix CE in mac 13123/head
authorLiangbin Lian <jjm2473@gmail.com>
Fri, 14 Aug 2020 06:19:12 +0000 (14:19 +0800)
committerLiangbin Lian <jjm2473@gmail.com>
Fri, 14 Aug 2020 11:53:59 +0000 (19:53 +0800)
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)

utils/lvm2/Makefile

index f90f6ea73283038ffe3d68c8a9f7baa35f7c59eb..c2785b6ff2f40550af546d871cf194e94379d253 100644 (file)
@@ -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