diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-04 15:48:04 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-04 15:48:04 +0200 |
commit | 98e1848db11e707f96504ccf9cb2ed09e6787dd1 (patch) | |
tree | 87899496b6b3f99d4bfb04727f4b130347ee0f27 | |
parent | bfe2ba7453e1b5005267a6bfcab920cc4facc9aa (diff) | |
download | buildroot-98e1848db11e707f96504ccf9cb2ed09e6787dd1.tar.gz buildroot-98e1848db11e707f96504ccf9cb2ed09e6787dd1.zip |
busybox: PAM support needs thread support
In commit f21b2558a097d07b53b6f20a47770468e9e4f7ed ("busybox: added
linux-pam support"), we added optional support for PAM in
Busybox. However, this support requires the toolchain to have thread
support, which causes build failures with non-thread capable
toolchains.
This commit therefore enables Busybox PAM support only if the
linux-pam package is available *and the toolchain has thread support.
Fixes:
http://autobuild.buildroot.org/results/1a3/1a380aaca9303b67cc59165d56cf12f35966fe26/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/busybox/busybox.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 34eb1f3654..51b35bc8fd 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -152,7 +152,8 @@ define BUSYBOX_INSTALL_WATCHDOG_SCRIPT endef endif -ifeq ($(BR2_PACKAGE_LINUX_PAM),y) +# PAM support requires thread support in the toolchain +ifeq ($(BR2_PACKAGE_LINUX_PAM)$(BR2_TOOLCHAIN_HAS_THREADS),yy) define BUSYBOX_LINUX_PAM $(call KCONFIG_ENABLE_OPT,CONFIG_PAM,$(BUSYBOX_BUILD_CONFIG)) endef |