#74 slibtoolize - use sltdl when using autoreconf with slibtoolize
Closed 2 weeks ago by midipix. Opened a year ago by orbea.

When a project regenerates the autotools files with slibtoolize it would be nice to use sltdl if applicable instead of GNU ltdl.

This would be very helpful for programs like ImageMagick and others.


As discussed on irc, properly addressing this should involve both slibtool and slibtoolize.

  • slibtool: a new command-line switch, --prefer-sltdl, will cause all -lltdl linker arguments to be replaced with -lsltdl arguments.

  • slibtoolize: by default, slibtoolize will import (or symlink sltdl.m4 to) sltdl.m4, which will result in the adding of --prefer-sltdl to the $SLIBTOOL variable. A new switch, --default-ltdl, could then be used to disable the above behavior and thus default to the system's ltdl library.

  • slibtool --prefer-sltdl: implemented in commit 9e90bed.
  • slibtoolize integration, with the added --system-ltdl switch (which seemed more precise than --default-ltdl) implemented in commit e496ed1.

Metadata Update from @midipix:
- Issue status updated to: Closed (was: Open)

2 weeks ago

Implementation has now changed to work around differences in autom4te caching behavior across systems, slibtoolize's --system-ltdl now simply creates a tag file, sysltdl.tag, which signals to package builders that the shell variable slibtool_prefer_sltdl should be set to no prior to the invocation of the package's ./configure script (cf. commit fa7ea0e).

Login to comment on this ticket.

Metadata