reset/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit a1350bc7493875392964dfc10937e6d4559629e4 Author: David Teigland teigland@redhat.com Date: Tue May 26 15:54:01 2015 -0500
sanlk-reset: add various compile flags
diff --git a/reset/Makefile b/reset/Makefile index d67ceb3..c61348a 100644 --- a/reset/Makefile +++ b/reset/Makefile @@ -32,16 +32,18 @@ CFLAGS += -D_GNU_SOURCE \
VER=$(shell cat ../VERSION) CFLAGS += -DVERSION="$(VER)" -I../src -I../wdmd +CFLAGS += -fPIE -DPIE
-LDFLAGS = -lsanlock -lwdmd +LDFLAGS = -Wl,-z,now -Wl,-z,relro -pie +LDADD = -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) - $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCE2) -o $@ -L. -L../src -L../wdmd + $(CC) $(CFLAGS) $(LDFLAGS) $(SOURCE2) $(LDADD) -o $@ -L. -L../src -L../wdmd
clean: rm -f *.o *.so *.so.* $(TARGET1) $(TARGET2)
sanlock-devel@lists.fedorahosted.org