package/stress-ng: link with -latomic when needed

Fix the following build failure raised since at least bump to version
0.15.04 in commit 00553ea186:

Fixes:
 - http://autobuild.buildroot.org/results/127ed4c110d99c6453a01ce221f628d40e566dc1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2023-09-16 12:40:40 +02:00 committed by Yann E. MORIN
parent 0eb397d30e
commit 42f2518023

View File

@ -20,6 +20,10 @@ ifeq ($(BR2_PACKAGE_KEYUTILS),y)
STRESS_NG_DEPENDENCIES += keyutils
endif
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
STRESS_NG_MAKE_FLAGS += LDFLAGS_EXTRA=-latomic
endif
define STRESS_NG_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(STRESS_NG_MAKE_FLAGS)
endef