]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
lm-sensors: Proper use compiler and linker flags during build time
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 18 Mar 2023 20:07:19 +0000 (21:07 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:25:39 +0000 (18:25 +0000)
Those flags are required during build time and not during installation.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
lm-sensors/lm-sensors.nm

index b49b296e08e5692b2f50a51760f966e8f27a907d..464ed1a5c4314337994013662aac580a5b22d9fb 100644 (file)
@@ -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