From: Martin Mares Date: Fri, 21 Jan 2022 21:00:22 +0000 (+0100) Subject: Use LDLIBS instead of LDFLAGS for libraries X-Git-Tag: v1.12~4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a6c1ba6a211493ea0be849060f01659ff2213ae2;p=checkmail.git Use LDLIBS instead of LDFLAGS for libraries Recent versions of GNU binutils became more pesky about argument order. --- diff --git a/Makefile b/Makefile index 1022e72..5c1f1df 100644 --- 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