libhugetlbfs/libhugetlbfs-make-cflags.patch

16 lines
378 B
Diff
Raw Permalink Normal View History

2019-09-30 10:56:32 -04:00
diff --git a/Makefile b/Makefile
index 73ebad7..3735440 100644
--- a/Makefile
+++ b/Makefile
2020-04-24 16:16:20 +08:00
@@ -30,8 +30,8 @@ INSTALL = install
LDFLAGS += -ldl
2019-09-30 10:56:32 -04:00
CFLAGS ?= -O2 -g
2020-04-24 16:16:20 +08:00
-CFLAGS += -Wall -fPIC
2019-09-30 10:56:32 -04:00
-CPPFLAGS += -D__LIBHUGETLBFS__
2020-04-24 16:16:20 +08:00
+CFLAGS += -Wall -fPIC -fstack-protector-strong
2019-09-30 10:56:32 -04:00
+CPPFLAGS += -D__LIBHUGETLBFS__ -DFORTIFY_SOURCE
2020-04-24 16:16:20 +08:00
ARCH ?= $(shell uname -m | sed -e s/i.86/i386/)
2019-09-30 10:56:32 -04:00
CC ?= gcc