summaryrefslogtreecommitdiff
path: root/0001-add-secure-compile-option-in-Makefile.patch
blob: 988ba4334d481993d49a6dbce0eb2beabea2317d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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