mirror of
git://git.yoctoproject.org/meta-dpdk.git
synced 2025-07-19 21:09:04 +02:00
dpdk: Fix exmples and test _FORTIFY_SOURCE build failure
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>
This commit is contained in:
parent
1a80901a65
commit
9ec4231c28
|
@ -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/$@/"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user