php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #79895
Patch PHP_CHECK_GCC_ARG.patch revision 2020-07-24 20:41 UTC by santi at mola dot io

Patch PHP_CHECK_GCC_ARG.patch for Unknown/Other Function Bug #79895

Patch version 2020-07-24 20:41 UTC

Return to Bug #79895 | Download this patch
Patch Revisions:

Developer: santi@mola.io

From 11c2124cff2b75c64ce87086875b2fcd91fcb1e0 Mon Sep 17 00:00:00 2001
From: "Santiago M. Mola" <santi@mola.io>
Date: Fri, 24 Jul 2020 22:29:35 +0200
Subject: [PATCH] PHP_CHECK_GCC_ARG

---
 acinclude.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index 4fd452ee92..4569f35d20 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -332,8 +332,8 @@ dnl
 dnl PHP_CHECK_GCC_ARG(arg, action-if-found, action-if-not-found)
 dnl
 AC_DEFUN([PHP_CHECK_GCC_ARG],[
-  gcc_arg_name=[ac_cv_gcc_arg]translit($1,A-Z-,a-z_)
-  AC_CACHE_CHECK([whether $CC supports $1], [ac_cv_gcc_arg]translit($1,A-Z-,a-z_), [
+  gcc_arg_name=[ac_cv_gcc_arg]translit($1,A-Z=-,a-z__)
+  AC_CACHE_CHECK([whether $CC supports $1], [ac_cv_gcc_arg]translit($1,A-Z=-,a-z__), [
   echo 'void somefunc() { };' > conftest.c
   cmd='$CC $1 -c conftest.c'
   if eval $cmd 2>&1 | $EGREP -e $1 >/dev/null ; then
-- 
2.27.0

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC