From 8abe3e79dacf23808433ba2d73226b8dfcb966db Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Fri, 12 Apr 2024 15:44:27 +0000 Subject: [PATCH] build: remove -lgcc from static link flags Remove -lgcc from static link flags for gcc/clang, clang does not support this and -static-libgcc is enough. Signed-off-by: Rafael Kitover --- cmake/Toolchain-gcc-clang.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Toolchain-gcc-clang.cmake b/cmake/Toolchain-gcc-clang.cmake index f56b062c..eb9f3e4e 100644 --- a/cmake/Toolchain-gcc-clang.cmake +++ b/cmake/Toolchain-gcc-clang.cmake @@ -59,7 +59,7 @@ if(VBAM_STATIC) if(APPLE) add_link_options(-static-libstdc++) else() - add_link_options(-static-libgcc -static-libstdc++ -Wl,-Bstatic -lgcc -lstdc++ -lpthread) + add_link_options(-static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread) endif() endif()