Merge pull request #887 from Yadoms/fixCrossCompileForPi

Try to fix cross-compile for Raspberry Pi with GCC version < 8.1
This commit is contained in:
Leonid Stryzhevskyi 2023-11-15 22:34:06 +02:00 committed by GitHub
commit c1d37c189e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
add_cxx_compiler_flags_no_test(CMAKE_CXX_FLAGS "-D_GLIBCXX_ASSERTIONS")
add_compiler_flags(4.6 "-fasynchronous-unwind-tables")
add_compiler_flags(4.6 "-fexceptions")
add_compiler_flags(4.6 "-fstack-clash-protection")
add_compiler_flags(8.1 "-fstack-clash-protection")
add_compiler_flags(4.6 "-fstack-protector-strong")
add_compiler_flags(4.6 "-grecord-gcc-switches")
# Issue 872: https://github.com/oatpp/oatpp/issues/872