When a project regenerates the autotools files with slibtoolize it would be nice to use sltdl if applicable instead of GNU ltdl.
slibtoolize
sltdl
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
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
slibtool --prefer-sltdl
--system-ltdl
--default-ltdl
Metadata Update from @midipix: - Issue status updated to: Closed (was: Open)
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).
autom4te
slibtool_prefer_sltdl
./configure
Login to comment on this ticket.