13 lines
668 B
Text
13 lines
668 B
Text
Index: cmake/compiler_settings.cmake
|
|
--- cmake/compiler_settings.cmake.orig
|
|
+++ cmake/compiler_settings.cmake
|
|
@@ -56,7 +56,8 @@
|
|
# Turn on more aggrassive optimizations not supported by CMake
|
|
# References: https://wiki.qt.io/Performance_Tip_Startup_Time
|
|
#-----------------------------------------------------------------------------
|
|
-if (CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX)
|
|
+if ((CMAKE_COMPILER_IS_GNUCXX OR LXQT_COMPILER_IS_CLANGCXX) AND
|
|
+ NOT (CMAKE_SYSTEM_NAME STREQUAL OpenBSD))
|
|
# -flto: use link-time optimizations to generate more efficient code
|
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
|
set(LTO_FLAGS "-flto -fuse-linker-plugin")
|