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 <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2024-04-12 15:44:27 +00:00
parent 710ffeb1b2
commit 8abe3e79da
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ if(VBAM_STATIC)
if(APPLE) if(APPLE)
add_link_options(-static-libstdc++) add_link_options(-static-libstdc++)
else() 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()
endif() endif()