package/gkrellm: link with -latomic if needed

Fixes:
http://autobuild.buildroot.net/results/5df/5dffba341cfe5e4d41b3c88e58d92b0747318c07/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 36c29522ae)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls 2023-06-18 14:32:14 +02:00 committed by Peter Korsgaard
parent e66213ee55
commit 623add7dae

View File

@ -12,7 +12,13 @@ GKRELLM_LICENSE_FILES = COPYING COPYRIGHT
GKRELLM_DEPENDENCIES = host-pkgconf libglib2 $(TARGET_NLS_DEPENDENCIES)
GKRELLM_BUILD_OPTS = \
STRIP="" \
SYS_LIBS=$(TARGET_NLS_LIBS)
SYS_LIBS="$(GKRELLM_SYS_LIBS)"
GKRELLM_SYS_LIBS = $(TARGET_NLS_LIBS)
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
GKRELLM_SYS_LIBS += -latomic
endif
ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
GKRELLM_DEPENDENCIES += lm-sensors