php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59765 Build process does not honour custom CFLAGS
Submitted: 2011-05-12 11:04 UTC Modified: 2011-05-26 15:14 UTC
From: theo148 at gmail dot com Assigned:
Status: Closed Package: yaml (PECL)
PHP Version: 5.3.5 OS: Fedora Linux
Private report: No CVE-ID: None
 [2011-05-12 11:04 UTC] theo148 at gmail dot com
Description:
------------
When attempting to build php-yaml with custom CFLAGS (as is often done in distro packaging), it seems that the configure script overrides any values in the CFLAGS environment variable instead of extending them. This causes problems when (for example) trying to pass -g to the compiler to build debug information. The patch in the reproduce code section changes this behaviour.

Reproduce code:
---------------
--- yaml-1.0.1/config.m4.orig	2011-05-03 23:34:31.533821965 +0800
+++ yaml-1.0.1/config.m4	2011-05-04 09:00:02.329201758 +0800
@@ -33,7 +33,7 @@
   fi
 
   PHP_ADD_INCLUDE($PHP_YAML_DIR/include)
-  CFLAGS="-Wall -fno-strict-aliasing"
+  CFLAGS+=" -Wall -fno-strict-aliasing"
 
   export OLD_CPPFLAGS="$CPPFLAGS"
   export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_YAML"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-26 15:14 UTC] bd808@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 14:01:31 2024 UTC