From 66066d52369243a8d99a1f47f0be77753049f31f Mon Sep 17 00:00:00 2001 From: Hannes Magnusson <bjori@php.net> Date: Fri, 22 Sep 2006 13:05:20 +0000 Subject: [PATCH] Fixed bug#38925 (incorrect compile option) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@220354 c90b9560-bf6c-de11-be94-00142212c4b1 --- internals/zendapi/creating.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internals/zendapi/creating.xml b/internals/zendapi/creating.xml index 607f36e866..8fa41f5349 100644 --- a/internals/zendapi/creating.xml +++ b/internals/zendapi/creating.xml @@ -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