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 <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl 2023-03-18 21:07:19 +01:00 committed by Michael Tremer
parent 281c7352ce
commit 2fec7288a7
1 changed files with 9 additions and 4 deletions

View 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