From 4ce1e35b9679aba74cd25255fb01f8a32eedfd91 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 14 Apr 2023 21:55:48 +0200 Subject: [PATCH] tools: Use LDLIBS instead of LDFLAGS Newer linkers are more picky about library order. --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 18612ed..61247b6 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -3,7 +3,7 @@ UCW_CFLAGS := $(shell $(PC) --cflags libucw) UCW_LDFLAGS := $(shell $(PC) --libs libucw) CFLAGS=$(UCW_CFLAGS) -O2 -std=gnu99 -Wall -Wextra -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -LDFLAGS=$(UCW_LDFLAGS) -lz +LDLIBS=$(UCW_LDFLAGS) -lz all: dfu-sign -- 2.39.2