[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building dynamically loaded modules
From: |
Ralf Wildenhues |
Subject: |
Re: building dynamically loaded modules |
Date: |
Tue, 3 Jul 2007 12:17:41 +0200 |
User-agent: |
Mutt/1.5.15 (2007-05-20) |
Hello Thomas,
* Thomas Koeller wrote on Tue, Jul 03, 2007 at 11:27:40AM CEST:
>
> when building a shared object to serve as a loadable module that is
> dlopen'ed by some program, there is little reason to build a static
> version even if --enable-static has been given to configure.
Not if your program supports dlpreopening:
<http://www.gnu.org/software/libtool/manual.html#Dlpreopening>
> Only a shared object should be built in this case, regardless of
> enable_shared and enable_static. Is there a supported way to achieve
> this?
Well, you can just not build the module in this case. If you're using
Automake, you can use a conditional
<http://sources.redhat.com/automake/automake.html#Conditionals>
based on $enable_shared and just not build the module if it is not
"yes".
Hope that helps.
Cheers,
Ralf