c shared Library
Jan-Benedict Glaw
jbglaw at lug-owl.de
Thu Sep 21 09:15:47 CEST 2000
On Thu, Sep 21, 2000 at 02:26:26AM +0200, Marco Meier wrote:
> Hi,
>
> inzwischen habe ich eine shared Library mit ELF Header erstellt
> (mit file geprüft: passt). Dennoch behauptet php4, dass es
> sich nicht um eine php Lib handelt. Was müssen neben
> Compilerdirektiven -shared -fpic (mit Linking shared) noch für Kriterien
> für die Lib erfüllt sein? Inzwischen habe ich echt keine Idee mehr :-(
ELF-HowTo:
----------------
This `increased flexibility' manifests as essentially two benefits to the average
applications progammer:
* It is much simpler to make shared libraries with ELF. Typically, just compile all the
object files with -fPIC, then link with a command like
gcc -shared -Wl,-soname,libfoo.so.y -o libfoo.so.y.x *.o
----------------
...und außerdem mußt Du bestimmte Namens-Konventionen mit Deinen
Funktionen einhalten, siehe
file://localhost/usr/share/doc/php3-doc/html/phpdevel.html
MfG, JBG
--
Fehler eingestehen, Größe zeigen: Nehmt die Rechtschreibreform zurück!!!
/* Jan-Benedict Glaw <jbglaw at lug-owl.de> -- +49-177-5601720 */
keyID=0x8399E1BB fingerprint=250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB
"insmod vi.o and there we go..." (Alexander Viro on linux-kernel)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20000921/23f74aee/attachment.sig>
More information about the Linux
mailing list