[meta-intel] [fido][PATCH 08/16] meta-isg: dpdk: fix GCC compiler LDFLAG and CFLAG issue

Ong Boon Leong boon.leong.ong at intel.com
Tue Jul 7 16:20:48 PDT 2015


DPDK v1.8.0 has some change made on app makefile that breaks dpdk.inc
may on passing in EXTRA_CFLAGS AND EXTRA_LDFLAGS. So this patch
re-tune the dpdk.inc to align to the change.

Signed-off-by: Ong Boon Leong <boon.leong.ong at intel.com>
---
 meta-isg/common/recipes-extended/dpdk/dpdk.inc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-isg/common/recipes-extended/dpdk/dpdk.inc b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
index 61b3259..e1670c5 100644
--- a/meta-isg/common/recipes-extended/dpdk/dpdk.inc
+++ b/meta-isg/common/recipes-extended/dpdk/dpdk.inc
@@ -34,8 +34,8 @@ do_compile () {
 	unset LDFLAGS TARGET_LDFLAGS BUILD_LDFLAGS
 
 	cd ${S}/${RTE_TARGET}
-	oe_runmake EXTRA_LDFLAGS=" --sysroot=${STAGING_DIR_HOST}" \
-		   EXTRA_CFLAGS=" --sysroot=${STAGING_DIR_HOST}" \
+	oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR}" \
+		   EXTRA_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_INCDIR}" \
 		   CROSS="${TARGET_PREFIX}" \
 		   prefix=""  LDFLAGS=""  WERROR_FLAGS="-w" V=1
 }
-- 
1.7.9.5



More information about the meta-intel mailing list