mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
0b5c87aae8
commit
66066d5236
1 changed files with 4 additions and 3 deletions
|
@ -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><your_object_file></filename>
|
||||
<filename><your_c_file></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
|
||||
|
|
Loading…
Reference in a new issue