Skip to content

Commit 4f72f7e

Browse files
committed
Split object file for later use
1 parent 3d78a0c commit 4f72f7e

File tree

5 files changed

+127
-125
lines changed

5 files changed

+127
-125
lines changed

ext/gd/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ dnl Various checks for GD features
166166
PHP_GD_FREETYPE2
167167
PHP_GD_JISX0208
168168

169-
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GD_CFLAGS))
169+
PHP_NEW_EXTENSION(gd, gd.c gd_image_object.c $extra_sources, $ext_shared,, \\$(GD_CFLAGS))
170170
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
171171
GD_CFLAGS="-I$ext_srcdir/libgd $GD_CFLAGS"
172172
GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
@@ -183,7 +183,7 @@ dnl Various checks for GD features
183183
AC_DEFINE(HAVE_LIBGD, 1, [ ])
184184
PHP_GD_CHECK_VERSION
185185

186-
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared)
186+
PHP_NEW_EXTENSION(gd, gd.c gd_image_object.c $extra_sources, $ext_shared)
187187
GD_HEADER_DIRS="ext/gd/"
188188
PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [
189189
AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])
@@ -195,4 +195,4 @@ dnl Various checks for GD features
195195
PHP_SUBST(GDLIB_CFLAGS)
196196
PHP_SUBST(GDLIB_LIBS)
197197
PHP_SUBST(GD_SHARED_LIBADD)
198-
fi
198+
fi

ext/gd/config.w32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if (PHP_GD != "no") {
3434
CHECK_LIB("Gdi32.lib", "gd", PHP_GD);
3535

3636
EXTENSION("gd", "gd.c", null, "-Iext/gd/libgd", "php_gd2.dll");
37+
ADD_SOURCES("gd_image_object.c");
3738
ADD_SOURCES("ext/gd/libgd", "gd2copypal.c gd.c \
3839
gdcache.c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c \
3940
gdft.c gd_gd2.c gd_gd.c gd_gif_in.c gd_gif_out.c gdhelpers.c gd_io.c gd_io_dp.c \

0 commit comments

Comments
 (0)