Add security flags to LDFLAGS for Linux

This commit is contained in:
Matheus Polkorny
2025-03-25 00:47:04 -03:00
parent 16f2dbd56c
commit 42e7950db8

View File

@@ -10,7 +10,7 @@ all: $(LIBNAME) libnethogs.a
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LDFLAGS:= -shared -Wl,-soname,$(SO_NAME)
LDFLAGS:= -shared -Wl,-soname,$(SO_NAME) -Wl,-z,now -Wl,-z,relro
else ifeq ($(UNAME_S),FreeBSD)
LDFLAGS:= -shared -Wl,-soname,$(SO_NAME)
else