[Buildroot] [PATCH 1/1] package/linux-pam: link with -latomic when needed

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Nov 4 22:22:11 UTC 2023


On Sat, 16 Sep 2023 16:10:51 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure raised since bump to version 1.5.3 in
> commit f8147e27cdac8f998ec6644a09ce4e8d62b6433c and
> https://github.com/linux-pam/linux-pam/commit/a35e092e24ee7632346a0e1b4a203c04d4cd2c62:
> 
> /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 at gmail.com>
> ---
>  package/linux-pam/linux-pam.mk | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list