[oe-commits] Joe Slater : acpid: modify CFLAGS
git at git.openembedded.org
git at git.openembedded.org
Thu May 30 19:53:28 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 710e773b0677b75181506959492b37cf77a0951f
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=710e773b0677b75181506959492b37cf77a0951f
Author: Joe Slater <jslater at windriver.com>
Date: Sun Feb 10 19:55:06 2013 +0000
acpid: modify CFLAGS
Override the hard-coded CFLAGS used in Makefile to reference our CFLAGS.
Without this patch if the DEBUG_OPTIMIZATION is enabled (using -O0) the
compile log shows acpid still using -O2 because the Makefile has various
hard coded CFLAGS defined. Instead of using the hard coded CFLAGS,
we simply define the proper set within the recipe itself.
Signed-off-by: Joe Slater <jslater at windriver.com>
Signed-off-by: Jeff Polk <jeff.polk at windriver.com>
Signed-off-by: Mark Hatle <mark.hatle at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-bsp/acpid/acpid.inc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-bsp/acpid/acpid.inc b/meta/recipes-bsp/acpid/acpid.inc
index 3c0219f..1ffe6ff 100644
--- a/meta/recipes-bsp/acpid/acpid.inc
+++ b/meta/recipes-bsp/acpid/acpid.inc
@@ -13,7 +13,9 @@ inherit update-rc.d
INITSCRIPT_NAME = "acpid"
INITSCRIPT_PARAMS = "defaults"
-EXTRA_OEMAKE = ""
+# Makefile ignores our CFLAGS, so override it.
+#
+EXTRA_OEMAKE = "CFLAGS='-W -Wall -Werror -Wundef -Wshadow ${CFLAGS} $(DEFS)'"
do_compile () {
oe_runmake 'CC=${CC} -D_GNU_SOURCE' 'CROSS=${HOST_PREFIX}'
More information about the Openembedded-commits
mailing list