Fixed bug#38925 (incorrect compile option)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@220354 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hannes Magnusson 2006-09-22 13:05:20 +00:00
parent 0b5c87aae8
commit 66066d5236

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Revision: 1.1 $ -->
<!-- $Revision: 1.2 $ -->
<sect1 id="zend.creating">
<title>Creating Extensions</title>
<para>
@ -146,7 +146,7 @@ ZEND_FUNCTION(first_module)
</row>
<row>
<entry colname="col1">Compiling</entry>
<entry colname="col2">cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I.
<entry colname="col2">cc -fpic -DCOMPILE_DL_FIRST_MODULE=1 -I/usr/local/include -I.
-I.. -I../Zend -c -o <filename>&lt;your_object_file&gt;</filename>
<filename>&lt;your_c_file&gt;</filename></entry>
</row>
@ -161,7 +161,8 @@ ZEND_FUNCTION(first_module)
</informaltable>
The command to compile the module simply instructs the compiler
to generate position-independent code (<literal>-fpic</literal> shouldn't be
omitted) and additionally defines the constant <literal>COMPILE_DL</literal> to
omitted) and additionally defines the constant
<literal>COMPILE_DL_FIRST_MODULE</literal> to
tell the module code that it's compiled as a dynamically loadable module (the
test module above checks for this; we'll discuss it shortly). After these
options, it specifies a number of standard include paths that should be used