RE: [PHP-DEV] PHP_SHLIB_SUFFIX and OS X

From: Date: Sun, 07 Nov 2004 21:12:13 +0000
Subject: RE: [PHP-DEV] PHP_SHLIB_SUFFIX and OS X
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-13771@lists.php.net to get a copy of this message
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:brad@mainstreetsoftworks.com] > Sent: Saturday, November 06, 2004 6:44 PM > To: internals@lists.php.net > 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 >

« previous php.internals (#13771) next »