因某些原因,有时会需要同时使用静态库及动态库编译代码,这时候我们就必须要了解些下面几个编译参数了。
编译参数
-Wl,-Bstatic
-Wl,-Bdynamic
-Wl,–as-needed
参数定义
-Wl,option
Pass option as an option to the linker. If option contains commas, it is split into multiple options at the commas. You can use this syntax to pass an argument to the option. For example, -Wl,-Map,outpu...