Albert Chin wrote:
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


Thanks for the hint, but wouldn't it give wrong results on Cygwin, which uses the "cyg" prefix, and presumably other platforms (the libltdl.m4 also cites the "pw" prefix for pw32)?

My point is that this information is already buried somewhere in libtool, though not yet in a reuseable fashion.

cheers,
dalibor topic


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to