With the updated ax_prog_cc_for_build.m4 CC_FOR_BUILD can include a
" -std=gnu23" option on some hosts. We don't need this on target and
it leads to a reproducibility issue, so remove it.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
install -m 644 ${B}/src/config.h ${D}${PTEST_PATH}/src/
sed -e 's/^srcdir = .*/srcdir = ..\/..\/ptest\/tests/' \
-e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \
+ -e '/^CC_FOR_BUILD/s/\s-std=gnu23//g' \
-i ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
}