|  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
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 @@
-  CFLAGS="-Wall -fno-strict-aliasing"
+  CFLAGS+=" -Wall -fno-strict-aliasing"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-26 15:14 UTC]
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

In case this was a 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-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 10:03:34 2021 UTC