From 3f29019457e7036b2731422d2522d157608b4cd0 Mon Sep 17 00:00:00 2001 From: Marek Olejnik Date: Mon, 25 Nov 2024 12:24:57 +0100 Subject: [PATCH] Remove `-lgcc_s` from the list of library dependencies When `-lgcc_s` is in the list of required libraries in .pc, it's impossible to avoid dependency to dynamic `libgcc_s.so` when linking gcc statically inside target binary using `-static-libgcc` option. --- cmake/modules/vvdecInstall.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/vvdecInstall.cmake b/cmake/modules/vvdecInstall.cmake index b138fb0f..0ab951a5 100644 --- a/cmake/modules/vvdecInstall.cmake +++ b/cmake/modules/vvdecInstall.cmake @@ -144,6 +144,7 @@ if( VVDEC_PKG_EXTRA_LIBS ) endif() list( REMOVE_ITEM VVDEC_PKG_EXTRA_LIBS "-lc" ) + list( REMOVE_ITEM VVDEC_PKG_EXTRA_LIBS "-lgcc_s" ) endif() resolve_target_interface_libs( vvdec VVDEC_PKG_INTERFACE_LIBS )