From 442a55ce6930c520f8577507f87a840aea8977d2 Mon Sep 17 00:00:00 2001 From: Charlie-83 <11279546+Charlie-83@users.noreply.github.com> Date: Tue, 2 Sep 2025 12:23:16 +0100 Subject: [PATCH] [build] Fix build on Arch Linux --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ac12fa55..2235aafc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ if (PLATFORM_LINUX AND (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_BUILD_T add_compile_options(-fno-fat-lto-objects) # To fix ar and ranlib "plugin needed to handle lto object". string(REGEX MATCH "[0-9]+" GCC_MAJOR_VERSION ${CMAKE_CXX_COMPILER_VERSION}) - file(GLOB_RECURSE plugin /usr/lib/gcc/*/${GCC_MAJOR_VERSION}/liblto_plugin.so) + file(GLOB_RECURSE plugin /usr/lib/gcc/*/${GCC_MAJOR_VERSION}*/liblto_plugin.so) set(CMAKE_C_ARCHIVE_CREATE " --plugin ${plugin} qcs ") set(CMAKE_C_ARCHIVE_FINISH " --plugin ${plugin} ") set(CMAKE_CXX_ARCHIVE_CREATE " --plugin ${plugin} qcs ")