aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/diffstat/diffstat/avoid-check-user-break-cc.patch
blob: 2df2d001855668cb58b53138e248a8b2b912dcc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Upstream-Status: Inappropriate [oe specific]

m4 function CF_CC_ENV_FLAGS checks whether variable CC contains options '-I', '-U'
and '-D'. It is not suitable for oe that option such as '-D_FORTIFY_SOURCE=2' may
be included in CC. And then CC will be wrongly filtered.

So comment out CF_CC_ENV_FLAGS from function CF_PROG_CC.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 aclocal.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 420fe83..eb73ea9 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1114,7 +1114,7 @@ CF_GCC_VERSION
 CF_ACVERSION_CHECK(2.52,
 	[AC_PROG_CC_STDC],
 	[CF_ANSI_CC_REQD])
-CF_CC_ENV_FLAGS
+dnl CF_CC_ENV_FLAGS
 ])dnl
 dnl ---------------------------------------------------------------------------
 dnl CF_PROG_GROFF version: 2 updated: 2015/07/04 11:16:27