From: foobar Date: Fri, 21 Jun 2002 00:15:48 +0000 (+0000) Subject: Make this extension compile as shared extension too. X-Git-Tag: php-4.3.0dev_zend2_alpha2~174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e79b06fc02f10c2e848e48f1a8a9f41e204e9b11;p=php Make this extension compile as shared extension too. --- diff --git a/ext/gmp/config.m4 b/ext/gmp/config.m4 index bbc524c540..f996ae978f 100644 --- a/ext/gmp/config.m4 +++ b/ext/gmp/config.m4 @@ -17,9 +17,9 @@ if test "$PHP_GMP" != "no"; then AC_MSG_ERROR(Unable to locate gmp.h) fi PHP_ADD_INCLUDE($GMP_DIR/include) - PHP_NEW_EXTENSION(gmp, gmp.c, $ext_shared) AC_DEFINE(HAVE_GMP, 1, [ ]) - PHP_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/lib) + PHP_SUBST(GMP_SHARED_LIBADD) + PHP_ADD_LIBRARY_WITH_PATH(gmp, $GMP_DIR/lib, GMP_SHARED_LIBADD) fi