天天看点

在sql上将两个表连在一起_如何在Linux上将2个.a库合并到一个.a库中?

在sql上将两个表连在一起

We have 2 static .a libraries and we would like to merge them into a single one for easier usage.

我们有2个静态.a库,我们希望将它们合并为一个以便于使用。

How to merge 2 .a libraries to one .a library on Linux?

如何在Linux上将2 .a库合并到一个.a库?

With GNU

ar

, you can specify the single command-line option -M and control it with a script supplied via standard input, like the MRI “librarian” program, beside of controlling ar’s activity using command-line options.

使用GNU

ar

,除了使用命令行选项控制ar的活动外,您还可以指定单个命令行选项-M并使用通过标准输入(例如MRI“ librarian”程序)提供的脚本来控制它。

You can use this command to merge 2 .a libraries, say ezm.a and libformat.a, to a single .a library, say libezm.a:

您可以使用此命令将2个.a库(例如ezm.a和libformat.a)合并到单个.a库(例如libezm.a):

ar -M <build-lib.mri
           

The build-lib.mri is as follows.

build-lib.mri如下。

create libezm.a
addlib ezm.a
addlib cppformat/build/libformat.a
save
end
           

Answered by Eric Z Ma. 埃里克·马(Eric Z Ma)回答。

翻译自: https://www.systutorials.com/how-to-merge-2-a-libraries-to-one-a-library-on-linux/

在sql上将两个表连在一起