]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Makefile
Makefile: Move -pie to LDFLAGS
[thirdparty/mdadm.git] / Makefile
index 7c221a891181fbf85e81514272ba3ef3c6afc32d..adac7905ab576fce4a072b9a074184495f239309 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -132,12 +132,12 @@ CFLAGS += -DUSE_PTHREADS
 MON_LDFLAGS += -pthread
 endif
 
-LDFLAGS = -Wl,-z,now,-z,noexecstack
+LDFLAGS ?= -pie -Wl,-z,now,-z,noexecstack
 
 # If you want a static binary, you might uncomment these
 # LDFLAGS += -static
 # STRIP = -s
-LDLIBS = -ldl -pie
+LDLIBS = -ldl
 
 # To explicitly disable libudev, set -DNO_LIBUDEV in CXFLAGS
 ifeq (, $(findstring -DNO_LIBUDEV,  $(CXFLAGS)))