开发者

Why use libtool to build libraries?

开发者 https://www.devze.com 2023-03-20 03:43 出处:网络
/bin/sh ./libtool --tag=CC--mode=link gcc-g-o pcretest pcretest.o libpcreposix.la libtool: link: gcc 开发者_如何学编程-g -o .libs/pcretest pcretest.o./.libs/libpcreposix.so /root/test/pcre-8.12/.libs/
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g   -o pcretest pcretest.o libpcreposix.la
libtool: link: gcc 开发者_如何学编程-g -o .libs/pcretest pcretest.o  ./.libs/libpcreposix.so /root/test/pcre-8.12/.libs/libpcre.so

It seems using libtool only makes it more complex,why not just stick to gcc ?


Because you might not be using gcc on another platform. The whole purpose of libtool is to be able to link on a multitude of platforms without needing to know the details of how each linker works and operating system environment works.

0

精彩评论

暂无评论...
验证码 换一张
取 消