commit 550782566ec05faddc56e12c93af0cb31c0f2961
parent c09e7ccc9a9e828f9b56e08519aea0e9f4650e9a
Author: Lennard Hofmann <lennard.hofmann@web.de>
Date: Sun, 5 Jul 2020 16:01:52 +0000
make: Allow passing LDFLAGS environment variable
Arch Linux for example passes `-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now`. The options `-Wl,-z,now` enable Full RELRO for better security.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -11,7 +11,7 @@ LFLAGS = $(shell pkg-config --libs glib-2.0 gio-2.0)
all: $(TARGET)
$(TARGET): $(OBJ)
- $(CC) $(CFLAGS) $(IFLAGS) $(SRC) $(LFLAGS) -o $(TARGET)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) $(SRC) $(LFLAGS) -o $(TARGET)
install: $(TARGET)
mkdir -p $(DESTDIR)$(PREFIX)/bin