aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2019-07-10 16:45:26 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-07-19 10:51:04 +0800
commit9ec4231c28cba7d6fc477a09650f1cf08b99640a (patch)
tree4d7dd8049255e1770139990f63711a0f8259f948
parent1a80901a65bce2385dca5dfe60285e22de8d708b (diff)
downloadmeta-dpdk-master.tar.gz
meta-dpdk-master.tar.bz2
meta-dpdk-master.zip
dpdk: Fix exmples and test _FORTIFY_SOURCE build failureHEADmaster
When building examples and tests with GCC9, the following errors come up, error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp] 382 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O) | ^~~~~~~ cc1: all warnings being treated as errors dpdk itself already appends -O3 the EXTRA_CFLAGS for some of those cases, but dpdk.inc overwrites EXTRA_CFLAGS when evoking make. This patches adds it back. Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-extended/dpdk/dpdk.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc
index a0e081a..9dcec76 100644
--- a/recipes-extended/dpdk/dpdk.inc
+++ b/recipes-extended/dpdk/dpdk.inc
@@ -106,12 +106,12 @@ do_compile () {
cd ${S}/examples/
oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR} --hash-style=gnu -fuse-ld=bfd" \
- EXTRA_CFLAGS="${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} -I${STAGING_INCDIR}" \
+ EXTRA_CFLAGS="${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} -O3 -I${STAGING_INCDIR}" \
CROSS="${TARGET_PREFIX}" O="${S}/examples/$@/"
cd ${S}/test/
oe_runmake EXTRA_LDFLAGS="-L${STAGING_LIBDIR} --hash-style=gnu -fuse-ld=bfd" \
- EXTRA_CFLAGS="${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} -I${STAGING_INCDIR}" \
+ EXTRA_CFLAGS="${HOST_CC_ARCH} ${TOOLCHAIN_OPTIONS} -O3 -I${STAGING_INCDIR}" \
CROSS="${TARGET_PREFIX}" O="${S}/test/$@/"
}