summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-09-20 10:24:54 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-09-20 10:24:54 +0200
commit93745a242fca45a215d1ce6a9903ecedd4a5414e (patch)
tree4005b1ac618cb9ae911715d44895b3f1165c260b
parente5082af69f3ab93fd29755e0a1e24af784c52ca3 (diff)
downloadphp-git-93745a242fca45a215d1ce6a9903ecedd4a5414e.tar.gz
Only check linking in PHP_TEST_BUILD
Given that this executes a random function with zero parameters, actually executing the code doesn't make sense. This should fix the imap + asan build.
-rw-r--r--build/php.m44
1 files changed, 1 insertions, 3 deletions
diff --git a/build/php.m4 b/build/php.m4
index b0e3c424d1..1f77f38e57 100644
--- a/build/php.m4
+++ b/build/php.m4
@@ -1626,7 +1626,7 @@ dnl
AC_DEFUN([PHP_TEST_BUILD], [
old_LIBS=$LIBS
LIBS="$4 $LIBS"
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
+ AC_LINK_IFELSE([AC_LANG_SOURCE([[
$5
char $1();
int main() {
@@ -1639,8 +1639,6 @@ AC_DEFUN([PHP_TEST_BUILD], [
],[
LIBS=$old_LIBS
$3
- ],[
- LIBS=$old_LIBS
])
])