Projects
openEuler:24.03:SP1:Everything:64G
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 4cf6dc9f628fc2c5b3478d70e15d4fab8a32ae86 Mon Sep 17 00:00:00 2001 From: zhongtao <zhongtao17@huawei.com> Date: Wed, 10 Apr 2024 11:43:51 +0800 Subject: [PATCH] add secure compile option Signed-off-by: zhongtao <zhongtao17@huawei.com> --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4137ce2..d17f09d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,9 @@ # to 3.26. cmake_minimum_required(VERSION 3.10...3.26) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-z,now -fstack-check -fPIE") +set(CMAKE_EXE_LINKER_FLAGS "-pie") + # Revert to old behavior for MSVC debug symbols. if(POLICY CMP0141) cmake_policy(SET CMP0141 OLD) -- 2.25.1
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