From 35ac0d1d720c48f644e6bf313a1ce09a21a93a15 Mon Sep 17 00:00:00 2001 From: ArenM <aren@peacevolution.org> Date: Tue, 26 Apr 2022 19:41:10 -0400 Subject: [PATCH] Include LDFLAGS from the environment While working on packageing wvkbd for the aur, I got a warning from namcap (an arch package verification tool) that RELRO wasn't enabled. From what I can tell, this is because make was ignoring the LDFLAGS set by makepkg. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a1bcca3..c0d70f8 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ WVKBD_HEADERS += $(wildcard $(SRC)/*.h) CFLAGS += -std=gnu99 -Wall -g -DWITH_WAYLAND_SHM -DLAYOUT=\"layout.${LAYOUT}.h\" -DKEYMAP=\"keymap.${LAYOUT}.h\" CFLAGS += $(shell pkg-config --cflags $(PKGS)) -LDFLAGS =$(shell pkg-config --libs $(PKGS)) -lm -lutil -lrt +LDFLAGS += $(shell pkg-config --libs $(PKGS)) -lm -lutil -lrt WAYLAND_HEADERS = $(wildcard proto/*.xml)