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 @@ - + Creating Extensions @@ -146,7 +146,7 @@ ZEND_FUNCTION(first_module) Compiling - cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. + cc -fpic -DCOMPILE_DL_FIRST_MODULE=1 -I/usr/local/include -I. -I.. -I../Zend -c -o <your_object_file> <your_c_file> @@ -161,7 +161,8 @@ ZEND_FUNCTION(first_module) The command to compile the module simply instructs the compiler to generate position-independent code (-fpic shouldn't be - omitted) and additionally defines the constant COMPILE_DL to + omitted) and additionally defines the constant + COMPILE_DL_FIRST_MODULE 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