Sfoglia il codice sorgente

Respect user LDFLAGS

* Respect user LDFLAGS instead of replacing them.

Signed-off-by: Alfred Wingate <[email protected]>
Alfred Wingate 2 anni fa
parent
commit
9ec6c2901c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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