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:
parent
710ffeb1b2
commit
8abe3e79da
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue