protobuf/0001-add-secure-compile-option-in-Makefile.patch
2019-12-25 16:04:26 +08:00

13 lines
310 B
Diff

diff --git a/src/Makefile.am b/src/Makefile.am
index f869d56..c8170f2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -19,6 +19,7 @@ PTHREAD_DEF =
endif
PROTOBUF_VERSION = 20:0:0
+PROTOBUF_OPT_FLAG += -Wl,-z,now
if GCC
# Turn on all warnings except for sign comparison (we ignore sign comparison