Browse Source

Respect user LDFLAGS

* Respect user LDFLAGS instead of replacing them.

Signed-off-by: Alfred Wingate <[email protected]>
Alfred Wingate 1 year ago
parent
commit
9ec6c2901c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      make-linux.mk

+ 1 - 1
make-linux.mk

@@ -71,7 +71,7 @@ else
 	override CFLAGS+=-Wall -Wno-deprecated -pthread $(INCLUDES) -DNDEBUG $(DEFS)
 	CXXFLAGS?=-O3 -fstack-protector
 	override CXXFLAGS+=-Wall -Wno-deprecated -std=c++17 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
-	LDFLAGS=-pie -Wl,-z,relro,-z,now
+	LDFLAGS?=-pie -Wl,-z,relro,-z,now
 	ZT_CARGO_FLAGS=--release
 endif