Brad, Thank you for the useful link. Since our extensions are basically "loadable modules" in OSX parlance, it should be safe to make PHP_SHLIB_SUFFIX = .so there, right? I'd really like to go ahead and do it.
-Andrei > -----Original Message----- > From: Brad House [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 06, 2004 6:44 PM > To: [EMAIL PROTECTED] > Cc: Andrei Zmievski; Shane Caraveo > Subject: Re: [PHP-DEV] PHP_SHLIB_SUFFIX and OS X > > > I guess I'm stepping in, in the middle of the conversation, > but dylibs and so's are totally different on MacOSX. > One of those OS X MACH-O oddities. > .dylib's are libraries which you link against, and are loaded at > runtime. (Shared Library) > .so's are something you can dlopen() (as of 10.3, don't remember > the 10.2 similar functions)... (Loadable Module) > > Please note that these are _not_ interchangeable. You cannot > link against a .so, and you cannot dlopen() a .dylib on MacOSX. > > If you decide to name all libraries .dylib, even those that are > meant to be dynamically loaded via dlopen, you will add a lot > of confusion into the mix... which is why libtool is most likely > not cooperating. > > A good reference on this is here: > http://fink.sourceforge.net/doc/porting/shared.php?phpLang=en#lib-and-mod > > -Brad > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php