From: Stefan Schantl Date: Sat, 18 Mar 2023 20:07:19 +0000 (+0100) Subject: lm-sensors: Proper use compiler and linker flags during build time X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fec7288a775dec5a20b8ec2bb927a380cd49dc2;p=people%2Fstevee%2Fipfire-3.x.git 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 --- 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