[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Libtool API suggestion: LTDL_SHLIB_PRE and/or char* ltdl_map_shared_

From: Dalibor Topic
Subject: Re: Libtool API suggestion: LTDL_SHLIB_PRE and/or char* ltdl_map_shared_name(const char* name)
Date: Wed, 24 Aug 2005 01:47:41 +0200
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

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 -> 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

  if x$need_lib_prefix = xno; then

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.

dalibor topic

reply via email to

[Prev in Thread] Current Thread [Next in Thread]