blob: 811faa48daa9c3f70cfd40595b4838b5f28bb7b7 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 1046593aacb74ff888a0d68c0ff89b20c4bc9ed4 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Tue, 15 May 2018 17:17:01 +0800
4Subject: [PATCH] diffstat: fix wrong evaluation of CC
5
6Upstream-Status: Inappropriate [oe specific]
7
8m4 function CF_CC_ENV_FLAGS checks whether variable CC contains options '-I', '-U'
9and '-D'. It is not suitable for oe that option such as '-D_FORTIFY_SOURCE=2' may
10be included in CC. And then CC will be wrongly filtered.
11
12So comment out CF_CC_ENV_FLAGS from function CF_PROG_CC.
13
14Signed-off-by: Kai Kang <kai.kang@windriver.com>
15
16---
17 aclocal.m4 | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/aclocal.m4 b/aclocal.m4
21index 9281aa8..dd57b7a 100644
22--- a/aclocal.m4
23+++ b/aclocal.m4
24@@ -1239,7 +1239,7 @@ CF_GCC_VERSION
25 CF_ACVERSION_CHECK(2.52,
26 [AC_PROG_CC_STDC],
27 [CF_ANSI_CC_REQD])
28-CF_CC_ENV_FLAGS
29+dnl CF_CC_ENV_FLAGS
30 ])dnl
31 dnl ---------------------------------------------------------------------------
32 dnl CF_PROG_GROFF version: 3 updated: 2018/01/07 13:16:19