Building ext/gd via phpize and using the bundled libgd
| From: | Brian J. France | Date: | Thu, 06 Oct 2005 18:34:54 +0000 |
| Subject: | Building ext/gd via phpize and using the bundled libgd | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-19454@lists.php.net to get a copy of this message | ||
The following patch is need if phpize is going to be used to build ext/gd with the bundled libgd library.
Otherwise HAVE_GD_BUNDLED will not be set for the bundled lib so it will not build with the php_gd_ prefix, but the extension will have HAVE_GD_BUNDLED defined and expecting the php_gd_ prefix which will cause undefined symbol errors on loading.
Thanks,
Brian
Index: gd.h
===================================================================
RCS file: /repository/php-src/ext/gd/libgd/gd.h,v
retrieving revision 1.26
diff -u -p -b -B -r1.26 gd.h
--- gd.h 27 Mar 2005 23:43:52 -0000 1.26 +++ gd.h 6 Oct 2005 18:28:10 -0000@@ -5,6 +5,10 @@ extern "C" { #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "php_compat.h" #ifndef WIN32