]> mj.ucw.cz Git - checkmail.git/commitdiff
Use LDLIBS instead of LDFLAGS for libraries
authorMartin Mares <mj@ucw.cz>
Fri, 21 Jan 2022 21:00:22 +0000 (22:00 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 21 Jan 2022 21:00:22 +0000 (22:00 +0100)
Recent versions of GNU binutils became more pesky about argument order.

Makefile

index 1022e722d8d62c2a45d845037702d3ace797869f..5c1f1dfe6023c29cbac71d6c96017a97ecd376e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,14 @@ CONFIG_INOTIFY=1
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline $(DEBUG) -std=gnu99 -DVERSION=$(VERSION) -DYEAR=$(YEAR)
 
 ifeq ($(CONFIG_WIDE_CURSES),1)
-LDFLAGS=-lncursesw
+LDLIBS=-lncursesw
 CFLAGS+=-DCONFIG_WIDE_CURSES=1
 else
-LDFLAGS=-lncurses
+LDLIBS=-lncurses
 endif
 
 ifeq ($(CONFIG_X11),1)
-LDFLAGS+=-lX11
+LDLIBS+=-lX11
 CFLAGS+=-DCONFIG_X11=1
 endif