lxcfs/0022-add-secure-compile-option-in-Makefile.patch

14 lines
393 B
Diff
Raw Normal View History

diff --git a/Makefile.am b/Makefile.am
index ac6066d..f85646a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,6 +10,8 @@ AM_LDFLAGS = $(FUSE_LIBS) -pthread
#AM_CFLAGS += -DDEBUG
AM_CFLAGS += -DRUNTIME_PATH=\"$(RUNTIME_PATH)\"
+AM_CFLAGS += -Wl,-z,now -fPIE
+AM_LDFLAGS += -Wl,-z,now -pie
liblxcfs_la_SOURCES = macro.h bindings.c cpuset.c bindings.h
liblxcfs_la_CFLAGS = $(AM_CFLAGS)