Source: bustools Version: 0.43.2+dfsg-1 Tags: patch User: debian-...@lists.debian.org Usertags: pac-bti
Hi, currently bustools uses the patch inject_hardening_flags_cmake.patch to hardcode some of the build flags we want. Instead of doing that, use the relevant environment variables. Patch attached. Emanuele
From: Emanuele Rocca <e...@debian.org> Date: Tue, 6 May 2025 10:59:33 +0200 Subject: [PATCH] Use default CFLAGS and CXXFLAGS set by dpkg --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 837b203..40310af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 2.8.12) project(bustools) -SET(CMAKE_CXX_FLAGS "-std=c++11 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2") -SET(CMAKE_C_FLAGS "-std=c99 -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2") +SET(CMAKE_CXX_FLAGS "-std=c++11 $ENV{CXXFLAGS}") +SET(CMAKE_C_FLAGS "-std=c99 $ENV{CFLAGS}") if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") -- 2.39.5