[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool option to build both static and shared?

From: Bob Friesenhahn
Subject: Re: libtool option to build both static and shared?
Date: Thu, 12 Nov 2009 10:50:03 -0600 (CST)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Thu, 12 Nov 2009, Stepan Kasal wrote:

Is there an option that would tell libtool to "build both", even
though it was configured with --disable-static?

I invented a solution that should work: configure with
--enable-static and then use -shared in CFLAGS or AM_CFLAGS for all
but libraries but that one.  I could recommend this solution to the
user, but I feel that the solution outlined above would be more

This is the solution which currently does work, as long as the OS, tools, and libraries are capable of it. Note that using --disable-static is not portable so attempting to force only a shared build decreases portability. One place I have observed failures with --disable-static is under Microsoft Windows since the necessary DLLs are not always available. You may encounter similar issues on Unix system if there is dependence on an installed library which does not have a shared version available.

Bob Friesenhahn
GraphicsMagick Maintainer,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]