From a6c1ba6a211493ea0be849060f01659ff2213ae2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 21 Jan 2022 22:00:22 +0100 Subject: [PATCH] Use LDLIBS instead of LDFLAGS for libraries Recent versions of GNU binutils became more pesky about argument order. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2