blob: ec4e6ffc454c54a9d3fe8eb193040478c34932f2 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 120c708d51f72ade4a31d3d8f35bcfad7b12e723 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 6 Sep 2022 20:38:03 -0700
4Subject: [PATCH] civetweb: Disable lto
5
6lto does not work everywhere, therefore disable it atleast in the cmake
7file, we can still enable it via environment
8
9Upstream-Status: Pending
10
11Signed-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)