This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shall dlopen("foo") succeeed if only "foo.dll" exists?


On Nov  3 20:13, Charles Wilson wrote:
> Corinna Vinschen wrote:
> > Maybe Chuck can make this definitive?
> 
> But that's not to say there aren't some packages out there that do
> something evil like this:
> 
> #if defined(__HPUX__)
> # define MODULE_EXTENSION ".sl"
> #elif !defined(__CYGWIN__) && !defined(_WIN32)
> # define MODULE_EXTENSION ".so"
> #else
> # define MODULE_EXTENSION ""
> #endif
> #define MODULE "libfoo" MODULE_EXTENSION
> 
> But, IMO, they should Not. Do. That. and deserve whatever pain they get.

And then again, as Yaakov already wrote, packages with runtime
modules like ruby, apache, and openssl use the .so suffix on all
platforms.

But what about perl?  It uses the .dll suffix for modules on Cygwin.
Does it call dlopen("foo.dll") or dlopen("foo")?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]