[1/1] wpa-supplicant: Enable EXTRA_CFLAGS

Submitted by rongqing.li@windriver.com on June 8, 2013, 6:40 a.m.

Details

Message ID f348bf04a5089012ba68e9734d07d86e2a4c8231.1370673504.git.rongqing.li@windriver.com
State Accepted
Commit 4a7b5963a9d18924ae0564119f4edeefaca6b415
Headers show

Commit Message

rongqing.li@windriver.com June 8, 2013, 6:40 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

Even if we define EXTRA_CFLAGS, but it never work, since the source codes
donot refer it, and CFLAGS is given a fixed value.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
index e5f7881..8d7233a 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
@@ -40,6 +40,7 @@  export BINDIR = "${sbindir}"
 
 do_compile () {
 	unset CFLAGS CPPFLAGS CXXFLAGS
+	sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules
 	oe_runmake -C wpa_supplicant
 }