17.3. Portable Library Design

When partitioning the functionality of your project into libraries, and particularly loadable modules, it is easy to inadvertently rely on modern shared library features such as back linking or dependent library loading. If you do accidentally use any of these features, you probably won't find out about it until someone first tries to use your project on an older or less-featureful host.

I have already used the '-module' and '-avoid-version' Libtool linking options when compiling the libltdl module in the preceding section; the others are useful to know also. All these are used with the 'link' mode of libtool ('libtool --mode=link'):

-module This option tells libtool that the target is a dynamically loadable module ...

Get GNU Autoconf, Automake, and Libtool now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.