aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-10-19 13:18:24 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-10-20 14:22:45 +0200
commit5620a4ca5abcb3ceb0b6744bb46c0b9c28f12c31 (patch)
tree11ea993dff86fee37f9cc7c2f358f2bf9850b67f
parent946f136fe174efc4560116940c93a84d456c7cfe (diff)
downloadbuildroot-5620a4ca5abcb3ceb0b6744bb46c0b9c28f12c31.tar.gz
buildroot-5620a4ca5abcb3ceb0b6744bb46c0b9c28f12c31.tar.bz2
mdadm: fix mdmon build without threads
Commit 45498bbc62d8df (mdadm: also install mdmon) enabled build of hte mdmon utility. This utility requires USE_PTHREADS make variable undefined to build when threads are not supported. Fixes: http://autobuild.buildroot.net/results/4bd/4bdd03b1d8f30ef32177727aae46d8cf54fbc35e/ Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/mdadm/mdadm.mk16
1 files changed, 10 insertions, 6 deletions
diff --git a/package/mdadm/mdadm.mk b/package/mdadm/mdadm.mk
index 3ee4ddd059..b2ed5049aa 100644
--- a/package/mdadm/mdadm.mk
+++ b/package/mdadm/mdadm.mk
@@ -10,13 +10,17 @@ MDADM_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/raid/mdadm
MDADM_LICENSE = GPL-2.0+
MDADM_LICENSE_FILES = COPYING
+MDADM_BUILD_OPTS = $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS) -DNO_COROSYNC -DNO_DLM" \
+ CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
+ CHECK_RUN_DIR=0
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
+MDADM_BUILD_OPTS += USE_PTHREADS=
+endif
+
define MDADM_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS) -DNO_COROSYNC -DNO_DLM" \
- CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
- CHECK_RUN_DIR=0 \
- mdadm mdmon
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(MDADM_BUILD_OPTS) mdadm mdmon
endef
define MDADM_INSTALL_TARGET_CMDS