我大约有80个静态库,我想从中创建一个静态库。
这个答案对我没有用,因为我收到了以下错误:
libtool: unrecognized option `-static'
我也不确定应该使用哪种模式,是"link"还是"install"?由于有20多个库,我是否可以使用“*”来指定全部?
我在文档中没有找到任何信息,除了这里的内容,但它并没有真正回答我的问题。
请注意,这些是可用的模式:
MODE must be one of the following:
clean remove files from the build directory
compile compile a source file into a libtool object
execute automatically set library path, then run a program
finish complete the installation of libtool libraries
install install libraries or executables
link create a library or an executable
uninstall remove libraries from an installed directory
libtool
创建静态库时,这80个静态库必须使用libtool --mode=compile
编译,而不是普通的gcc
。另外,请分享您的输出结果,包括which libtool
和ls -l <which libtool命令中的路径>
。 - askmish