]> mj.ucw.cz Git - home-hw.git/commitdiff
tools: Use LDLIBS instead of LDFLAGS
authorMartin Mares <mj@ucw.cz>
Fri, 14 Apr 2023 19:55:48 +0000 (21:55 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 14 Apr 2023 19:55:48 +0000 (21:55 +0200)
Newer linkers are more picky about library order.

tools/Makefile

index 18612ed725e25d2c71a713ce7760ce59ac212f41..61247b69c5832b9cd806793105c7f4b1ca1fc473 100644 (file)
@@ -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