mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
package/linux-pam: link with -latomic when needed
Fix the following build failure raised since bump to version 1.5.3 in commitf8147e27cd
anda35e092e24
: /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/11.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: .libs/pam_keyinit.o: in function `pam_sm_open_session': pam_keyinit.c:(.text+0x824): undefined reference to `__atomic_fetch_add_4' Fixes: - http://autobuild.buildroot.org/results/52c51b5ad5930ed783b88fb33932297379fd4429 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
c8ff8d41c0
commit
f1a47904b6
@ -21,9 +21,14 @@ LINUX_PAM_DEPENDENCIES = flex host-flex host-pkgconf \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
LINUX_PAM_LICENSE = BSD-3-Clause
|
||||
LINUX_PAM_LICENSE_FILES = Copyright
|
||||
LINUX_PAM_MAKE_OPTS += LIBS=$(TARGET_NLS_LIBS)
|
||||
LINUX_PAM_LIBS = $(TARGET_NLS_LIBS)
|
||||
LINUX_PAM_MAKE_OPTS += LIBS="$(LINUX_PAM_LIBS)"
|
||||
LINUX_PAM_CPE_ID_VENDOR = linux-pam
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
LINUX_PAM_LIBS += -latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
LINUX_PAM_CONF_OPTS += --enable-selinux
|
||||
LINUX_PAM_DEPENDENCIES += libselinux
|
||||
|
Loading…
Reference in New Issue
Block a user