php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #68114
Patch patch-php56-ext-mysqlnd-config9.m4.diff revision 2014-11-04 02:17 UTC by php-bugs-2014 at ryandesign dot com

Patch patch-php56-ext-mysqlnd-config9.m4.diff for MySQL related Bug #68114

Patch version 2014-11-04 02:17 UTC

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

Developer: php-bugs-2014@ryandesign.com

Fix build with old gcc
https://bugs.php.net/bug.php?id=68114
--- a/ext/mysqlnd/config9.m4.orig	2014-10-15 07:59:32.000000000 -0500
+++ b/ext/mysqlnd/config9.m4	2014-11-03 19:27:08.000000000 -0600
@@ -55,6 +55,8 @@
 dnl References: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1657.pdf
 dnl http://speleotrove.com/decimal/
 dnl
+old_CFLAGS=$CFLAGS
+CFLAGS="$CFLAGS -O0"
 AC_CACHE_CHECK([whether whether compiler supports Decimal32/64/128 types], ac_cv_decimal_fp_supported,[
 AC_TRY_RUN( [
 #include <stdio.h>
@@ -72,6 +74,7 @@
 ],[
   ac_cv_decimal_fp_supported=no
 ])])
+CFLAGS=$old_CFLAGS
 if test "$ac_cv_decimal_fp_supported" = "yes"; then
   AC_DEFINE(HAVE_DECIMAL_FP_SUPPORT, 1, [Define if the compiler supports Decimal32/64/128 types.])
 fi
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 16:01:29 2024 UTC