[Insight-developers] Shared libs on Mac

Bill Lorensen bill.lorensen at gmail.com
Fri Mar 25 18:03:32 EDT 2011


I'll fix it to support both on the Mac.

On Fri, Mar 25, 2011 at 3:04 PM, Brad King <brad.king at kitware.com> wrote:

> On 03/25/2011 02:46 PM, Bill Lorensen wrote:
> > I don't know. Some time ago, we changes the lookup suffix for shard libs
> > on the mac from .so to  .dylib. After modularization, it seems to be .so.
> >
> > Do the other itk shared libs have .so or .dylib?
>
> This is the difference in default name between using add_library with
> SHARED v. MODULE.  At one time on the mac there was a distinction between
> linkable libraries (.dylib) and loadable modules (.so) that could be
> loaded with the predecessor to dlopen.  That is the original reason that
> CMake makes a distinction between SHARED and MODULE libraries.  Now we
> use it to distinguish linkable shared libraries from plugin modules on
> all platforms.
>
> If you remember in a note I sent recently about these two forms I commented
> that I could not remember why we used SHARED in ITK.  Well, one reason is
> the dynamic loader. ;)
>
> I think the dynamic loader should support both extensions.
>
> -Brad K
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110325/8b859f82/attachment.htm>


More information about the Insight-developers mailing list