From 48743aa28bf995c49601442ab74a29043dadb82a Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 30 Jul 2025 15:47:20 +0200 Subject: [PATCH] zpwr: Use 'LDLIBS' for specifying the math library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Sumanth Korikkar Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- zpwr/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zpwr/Makefile b/zpwr/Makefile index c56dee26..6fa16c2c 100644 --- a/zpwr/Makefile +++ b/zpwr/Makefile @@ -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)