Skip to content
forked from php/php-src

Commit 93745a2

Browse files
committed
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.
1 parent e5082af commit 93745a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

build/php.m4

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ dnl
16261626
AC_DEFUN([PHP_TEST_BUILD], [
16271627
old_LIBS=$LIBS
16281628
LIBS="$4 $LIBS"
1629-
AC_RUN_IFELSE([AC_LANG_SOURCE([[
1629+
AC_LINK_IFELSE([AC_LANG_SOURCE([[
16301630
$5
16311631
char $1();
16321632
int main() {
@@ -1639,8 +1639,6 @@ AC_DEFUN([PHP_TEST_BUILD], [
16391639
],[
16401640
LIBS=$old_LIBS
16411641
$3
1642-
],[
1643-
LIBS=$old_LIBS
16441642
])
16451643
])
16461644

0 commit comments

Comments
 (0)