zpwr: Use 'LDLIBS' for specifying the math library

Use 'LDLIBS' to specify the libraries that the tool is linked against.
If it is specified as a dependency, the build system may attempt to
build it and fail.

Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2025-07-30 15:47:20 +02:00
committed by Jan Höppner
parent 7ce988ac59
commit 48743aa28b

View File

@@ -10,8 +10,9 @@ include ../common.mak
all: zpwr
OBJECTS = zpwr.o
LDLIBS += -lm
zpwr: $(OBJECTS) $(rootdir)/libutil/libutil.a -lm
zpwr: $(OBJECTS) $(rootdir)/libutil/libutil.a
install: all
$(INSTALL) -d -m 755 $(DESTDIR)$(USRBINDIR)