From 2fec7288a775dec5a20b8ec2bb927a380cd49dc2 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sat, 18 Mar 2023 21:07:19 +0100 Subject: [PATCH] lm-sensors: Proper use compiler and linker flags during build time Those flags are required during build time and not during installation. Signed-off-by: Stefan Schantl --- lm-sensors/lm-sensors.nm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lm-sensors/lm-sensors.nm b/lm-sensors/lm-sensors.nm index b49b296e0..464ed1a5c 100644 --- a/lm-sensors/lm-sensors.nm +++ b/lm-sensors/lm-sensors.nm @@ -5,7 +5,7 @@ name = lm-sensors version = 3.6.0 -release = 1 +release = 2 thisapp = %{name}-3-6-0 groups = Applications/Statistics @@ -27,14 +27,19 @@ build rrdtool-devel end + make_build_targets += \ + CFLAGS="%{CFLAGS}" \ + LDFLAGS="%{LDFLAGS}" \ + EXLDFLAGS="%{LDFLAGS}" \ + BUILD_STATIC_LIB=0 \ + PROG_EXTRA=sensord + make_install_targets += \ PREFIX=%{prefix} \ LIBDIR=%{libdir} \ MANDIR=%{mandir} \ - PROG_EXTRA=sensord \ BUILD_STATIC_LIB=0 \ - CFLAGS="%{CFLAGS}" \ - EXLDFLAGS="%{LDFLAGS}" + PROG_EXTRA=sensord end packages -- 2.47.3