Skip to content

Commit e13f8f7

Browse files
committed
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.
1 parent 6ca5efa commit e13f8f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

depends/packages/boost.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ $(package)_config_libraries=filesystem,system,test
2626
$(package)_cxxflags+=-std=c++17
2727
$(package)_cxxflags_linux=-fPIC
2828
$(package)_cxxflags_android=-fPIC
29-
$(package)_cxxflags_x86_64_darwin=-fcf-protection=full
30-
$(package)_cxxflags_mingw32=-fcf-protection=full
29+
$(package)_cxxflags_x86_64=-fcf-protection=full
3130
endef
3231

3332
define $(package)_preprocess_cmds

0 commit comments

Comments
 (0)