From e13f8f775d9e8da04db0e072040d11237c5d1089 Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 15 Oct 2021 15:35:32 +0800 Subject: build: build x86_64 Linux Boost with -fcf-protection=full This is required so that we can test for control flow in our ELF security checks. Otherwise test_bitcoin will fail, as it has a main that is provided by Boost, and wont have been built with -fcf-protection=full. While here simplify to using -fcf-protection for all x86_64 builds. --- depends/packages/boost.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'depends/packages') diff --git a/depends/packages/boost.mk b/depends/packages/boost.mk index 5fe2b2bbb8..fe2425ffaf 100644 --- a/depends/packages/boost.mk +++ b/depends/packages/boost.mk @@ -26,8 +26,7 @@ $(package)_config_libraries=filesystem,system,test $(package)_cxxflags+=-std=c++17 $(package)_cxxflags_linux=-fPIC $(package)_cxxflags_android=-fPIC -$(package)_cxxflags_x86_64_darwin=-fcf-protection=full -$(package)_cxxflags_mingw32=-fcf-protection=full +$(package)_cxxflags_x86_64=-fcf-protection=full endef define $(package)_preprocess_cmds -- cgit v1.2.3