Projects
Mega:23.09
protobuf
_service:tar_scm:0001-add-secure-compile-option...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-add-secure-compile-option.patch of Package protobuf
From bc32151458494ce41b4ccc0e0e87999ce27a15fc Mon Sep 17 00:00:00 2001 From: zhongtao <zhongtao17@huawei.com> Date: Wed, 10 Jan 2024 16:21:07 +0800 Subject: [PATCH] add secure compile option Signed-off-by: zhongtao <zhongtao17@huawei.com> --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4137ce2..05ee303 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ # to 3.26. cmake_minimum_required(VERSION 3.10...3.26) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-z,now -fstack-check") + # Revert to old behavior for MSVC debug symbols. if(POLICY CMP0141) cmake_policy(SET CMP0141 OLD) -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2