|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: theo148 at gmail dot com
New email:
PHP Version: OS:


 [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-2023 The PHP Group
All rights reserved.
Last updated: Thu Mar 23 06:03:38 2023 UTC