#48456 [Opn->Csd]: Custom settings of CPPFLAGS are lost during processing phpize.m4 file

From: Date: Tue, 02 Jun 2009 19:55:14 +0000
Subject: #48456 [Opn->Csd]: Custom settings of CPPFLAGS are lost during processing phpize.m4 file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137985@lists.php.net to get a copy of this message
ID: 48456 Updated by: jani@php.net Reported By: spisek at kerio dot com -Status: Open +Status: Closed Bug Type: *Compile Issues Operating System: Linux/Macos PHP Version: 5.2.9 New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-06-02 19:41:38] spisek at kerio dot com Description: ------------ When phpize script is run all custom settings of CPPFLAGS are lost. Reproduce code: --------------- CPPFLAGS="-D_MY_FLAGS" ./phpize Expected result: ---------------- A definition of _MY_FLAGS is propagated to gcc command line Actual result: -------------- No _MY_FLAGS definitoin on gcc command line. here is a patch for the issue: --- scripts/phpize.m4 2009-06-02 11:03:14.000000000 +0200 +++ scripts/phpize.m4 2009-06-02 13:35:22.000000000 +0200 @@ -70,12 +70,13 @@ #endif ],[ PHP_DEBUG=yes ],[ PHP_DEBUG=no ]) +CPPFLAGS=$old_CPPFLAGS AC_MSG_RESULT([$PHP_DEBUG]) AC_MSG_CHECKING([if zts is enabled]) old_CPPFLAGS=$CPPFLAGS CPPFLAGS="-I$phpincludedir" AC_EGREP_CPP(php_zts_is_enabled,[ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48456&edit=1

« previous php.bugs (#137985) next »