fence_sanlock/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 05fb1a81a3218c9247dd96d7ea261c67f84700cf Author: David Teigland teigland@redhat.com Date: Wed Oct 14 12:57:52 2015 -0500
fence_sanlock: add flags for build
diff --git a/fence_sanlock/Makefile b/fence_sanlock/Makefile index 6b460fe..6e2aa9b 100644 --- a/fence_sanlock/Makefile +++ b/fence_sanlock/Makefile @@ -32,13 +32,15 @@ CFLAGS += -D_GNU_SOURCE -g \
VER=$(shell cat ../VERSION) CFLAGS += -DVERSION="$(VER)" -I../src -I../wdmd +CFLAGS += -fPIE -DPIE
-LDFLAGS = -lrt -laio -lblkid -lsanlock -lwdmd +LDFLAGS = -Wl,-z,now -Wl,-z,relro -pie +LDADD = -lrt -laio -lblkid -lsanlock -lwdmd
all: $(TARGET1) $(TARGET2)
$(TARGET1): $(SOURCE1) - $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCE1) -o $@ -L. -L../src -L../wdmd + $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCE1) $(LDADD) -o $@ -L. -L../src -L../wdmd
$(TARGET2): $(SOURCE2) cat $(SOURCE2) | sed \
sanlock-devel@lists.fedorahosted.org