summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-06-21 00:15:48 +0000
committerfoobar <sniper@php.net>2002-06-21 00:15:48 +0000
commite79b06fc02f10c2e848e48f1a8a9f41e204e9b11 (patch)
tree01ebe33619ef3618238add613c1a3cfb8d036e48
parent7c4ad7eda4c95ddfbba53d18b516b7a029ae619d (diff)
downloadphp-git-e79b06fc02f10c2e848e48f1a8a9f41e204e9b11.tar.gz
Make this extension compile as shared extension too.
-rw-r--r--ext/gmp/config.m44
1 files changed, 2 insertions, 2 deletions
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