Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
libtool 如何决定是否构建共享库?
陈兹
如果您使用 Automake 和 Autoconf,那么如果您的平台支持,Libtool 默认会同时构建共享和静态。要仅构建一种,请configure使用--disable-staticor调用--disable-shared。
configure
--disable-static
--disable-shared
来自http://www.manpagez.com/man/1/libtool/
Libtool 可以使用 -dynamic 创建动态链接的共享库, 或者使用 -static创建静态链接(归档)库 。