Crazy Chenz
Crazy Chenz

Reputation: 13208

How does libtool decide to build a shared library or not?

How does libtool decide to build a shared library or not?

Chenz

Upvotes: 2

Views: 1606

Answers (2)

ptomato
ptomato

Reputation: 57920

If you use Automake and Autoconf, then Libtool builds both shared and static by default if they are supported on your platform. To build only one kind, call configure with --disable-static or --disable-shared.

Upvotes: 1

Epsilon Prime
Epsilon Prime

Reputation: 4586

From http://www.manpagez.com/man/1/libtool/

Libtool can create either dynamically linked shared libraries, with -dynamic, or statically linked (archive) libraries, with -static.

Upvotes: 0

Related Questions