且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用glibc和libstdc ++静态链接

更新时间:2023-10-22 23:04:10

指定选项 -static-libgcc 到链接器将导致它链接到C库的静态版本(如果在系统上可用)。否则会被忽略。

Specifying the option -static-libgcc to the linker would cause it to link against a static version of the C library, if available on the system. Otherwise it is ignored.