protobuf/0001-add-secure-compile-option-in-Makefile.patch
lyn1001 203be9b4ec update to 3.14.0
(cherry picked from commit 34c1044953a14a58a4dfb15e13fa35d262bab8e0)
2021-08-18 11:05:23 +08:00

13 lines
310 B
Diff

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