Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From 120c708d51f72ade4a31d3d8f35bcfad7b12e723 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 6 Sep 2022 20:38:03 -0700 |
| 4 | Subject: [PATCH] civetweb: Disable lto |
| 5 | |
| 6 | lto does not work everywhere, therefore disable it atleast in the cmake |
| 7 | file, we can still enable it via environment |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | thirdparty/civetweb-1.10/CMakeLists.txt | 4 ---- |
| 14 | 1 file changed, 4 deletions(-) |
| 15 | |
| 16 | --- a/thirdparty/civetweb-1.10/CMakeLists.txt |
| 17 | +++ b/thirdparty/civetweb-1.10/CMakeLists.txt |
| 18 | @@ -298,7 +298,6 @@ add_c_compiler_flag(/WX) |
| 19 | add_c_compiler_flag(-pedantic-errors) |
| 20 | add_c_compiler_flag(-fvisibility=hidden) |
| 21 | add_c_compiler_flag(-fstack-protector-strong RELEASE) |
| 22 | -add_c_compiler_flag(-flto RELEASE) |
| 23 | |
| 24 | add_c_compiler_flag(-fstack-protector-all DEBUG) |
| 25 | if (MINGW) |
| 26 | @@ -361,7 +360,6 @@ if (CIVETWEB_ENABLE_CXX) |
| 27 | add_cxx_compiler_flag(-pedantic-errors) |
| 28 | add_cxx_compiler_flag(-fvisibility=hidden) |
| 29 | add_cxx_compiler_flag(-fstack-protector-strong RELEASE) |
| 30 | - add_cxx_compiler_flag(-flto RELEASE) |
| 31 | |
| 32 | add_cxx_compiler_flag(-fstack-protector-all DEBUG) |
| 33 | if (MINGW) |