libtool
[Top][All Lists]
Advanced

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

Is it possible to pass different options to static/shared builds?


From: J.T. Conklin
Subject: Is it possible to pass different options to static/shared builds?
Date: Fri, 14 Oct 2005 11:25:08 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix)

I'm one of the ACE/TAO developers that maintain its autoconf/automake
build infrastructure.

We use preprocessor macros to conditionally compile in factory
methods, static constructors, and export/visibility directives.  For
example, for the TAO library, TAO_BUILD_DLL is defined when building
a shared library, but not for static libraries.  Similar macros are
used for the (many) other libraries.

Is there any way to specify options that will be used for only one of
the build types?  Short of that, is there a way to disable the static
build so it can't be overriden by --enable-static by the user (since
inappropriate options will be passed through).

Similarly, how do folks generally go about providing static, profile
instrumented, libraries?

    --jtc

-- 
J.T. Conklin




reply via email to

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