25 lines
590 B
Diff
25 lines
590 B
Diff
From 03ce780382f83b0921a55f9e06bb59c6ce7b03f1 Mon Sep 17 00:00:00 2001
|
|
From: zhongtao <zhongtao17@huawei.com>
|
|
Date: Fri, 21 Jul 2023 17:30:51 +0800
|
|
Subject: [PATCH] add secure compile option in Makefile
|
|
|
|
---
|
|
src/Makefile.am | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
index 1d9cd6fb4..cd9f7cff5 100644
|
|
--- a/src/Makefile.am
|
|
+++ b/src/Makefile.am
|
|
@@ -19,6 +19,7 @@ PTHREAD_DEF =
|
|
endif
|
|
|
|
PROTOBUF_VERSION = 30:6:0
|
|
+PROTOBUF_OPT_FLAG += -Wl,-z,now
|
|
|
|
if GCC
|
|
# Turn on all warnings except for sign comparison (we ignore sign comparison
|
|
--
|
|
2.25.1
|
|
|