add BUILD_WITH_STACK_PROTECTOR option#1756
add BUILD_WITH_STACK_PROTECTOR option#1756kevinbackhouse merged 1 commit intoExiv2:mainfrom ffontaine:main
Conversation
Add BUILD_WITH_STACK_PROTECTOR to avoid the following build failure with toolchains that don't support stack-protector: /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/9.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: utils.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag]+0xd0): undefined reference to `__stack_chk_fail' Indeed, support for -fstack-protector-strong can't be detected through check_cxx_compiler_flag as some toolchains need to link with -lssp to enable SSP support Fixes: - http://autobuild.buildroot.org/results/ae4635899124c602c70d2b342a76f95c34aa4a3d Signed-off-by: Fabrice Fontaine <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1756 +/- ##
=======================================
Coverage 67.22% 67.22%
=======================================
Files 151 151
Lines 20787 20787
=======================================
Hits 13975 13975
Misses 6812 6812 Continue to review full report at Codecov.
|

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

Add
BUILD_WITH_STACK_PROTECTORto avoid the following build failure with toolchains that don't support stack-protector:/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-uclibc/9.3.0/../../../../mipsel-buildroot-linux-uclibc/bin/ld: utils.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag]+0xd0): undefined reference to__stack_chk_fail'`Indeed, support for -fstack-protector-strong can't be detected through
check_cxx_compiler_flagas some toolchains need to link with-lsspto enable SSP supportFixes:
Signed-off-by: Fabrice Fontaine [email protected]