summaryrefslogtreecommitdiff
path: root/ext/pcre/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcre/config.m4')
-rw-r--r--ext/pcre/config.m46
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/pcre/config.m4 b/ext/pcre/config.m4
index 076dde0752..89d2394143 100644
--- a/ext/pcre/config.m4
+++ b/ext/pcre/config.m4
@@ -49,11 +49,7 @@ if test "$PHP_PCRE_REGEX" != "no"; then
AC_MSG_ERROR(Could not find libpcre.a in $PHP_PCRE_REGEX)
fi
- if test "$ext_shared" = "yes"; then
- PCRE_SHARED_LIBADD="-R$PCRE_LIBDIR -L$PCRE_LIBDIR -lpcre"
- else
- AC_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR)
- fi
+ AC_ADD_LIBRARY_WITH_PATH(pcre, $PCRE_LIBDIR, PCRE_SHARED_LIBADD)
AC_ADD_INCLUDE($PCRE_INCDIR)
AC_DEFINE(HAVE_PCRE, 1, [ ])