delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Sun, 12 Sep 2004 14:46:06 +0400 |
From: | Maarten Boekhold <boekhold AT emirates DOT net DOT ae> |
Subject: | cygwin glib/g_module_build_path |
To: | "Gerrit @ cygwin" <cygwin AT cygwin DOT com> |
Cc: | cygwin AT cygwin DOT com |
Message-id: | <414428EE.6070004@emirates.net.ae> |
MIME-version: | 1.0 |
User-Agent: | Mozilla Thunderbird 0.7.1 (Windows/20040626) |
X-IsSubscribed: | yes |
Hi Gerrit, Using libtool under cygwin, it is quite common that a shared library (eg. cygfoo.dll) is installed in a different directory than the libtool library (eg. libfoo.la). libfoo.la would then point to the location of the actual DLL: # The name that we can dlopen(3). dlname='../bin/cygxfce4_desktop_menu.dll' An application using g_module_build_path would usually assume that a library is installed in the directory where the libtool archive is located. g_module_build_path as included in the cygwin version does not take any .la libtool archives into account at all, and is therefore likely to return the wrong location for a specific shared library. However, g_module_open *does* know how to handle .la files and find the actual location/filename of the DLL in question. Should we add a special case to gmodule-win32.c:_g_module_build_path() that checks whether there exists a libtool archive at the specified directory/module_name location (eg. directory + "/lib" + module_name + ".la") and if so return that as a path? Or would there be a better solution for this? Maarten -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |