On Tue, Aug 23, 2005 at 08:20:42PM +0200, Dalibor Topic wrote:
It would be nice if libtool provided a way to either map a short dynamic
library name to a full name (say, something -> libsomething.so) or
offered an autoconfish way to get the platform-specifc shared library
prefix, like it does for the suffix.
I've seen that a similar problem occured for GNU readline on cygwin[1],
and they went for a platform-specific set of properties in the
makefiles. I guess it would be more efficient if libtool provided a
central API for that, rather than to see projects reinventing the wheel.
It also seems that ltdl.c uses the "lib" prefix specifically in one case
[2] , where it may or may not make sense to use a hypothetical
LTDL_SHLIB_PRE.
so:
if x$need_lib_prefix = xno; then
LTDL_SHLIB_PRE=
else
LTDL_SHLIB_PRE="lib"
fi