This avoid buildpaths being in target packages. These are emitted into
generated lexer.c and parser.c, therefore ensure that lex and yacc are
directled to not include lines in their output.

Signed-off-by: Khem Raj <[email protected]>
---
 meta-oe/recipes-support/libiio/libiio_git.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-support/libiio/libiio_git.bb 
b/meta-oe/recipes-support/libiio/libiio_git.bb
index bb253f421a..c8ff0d34bc 100644
--- a/meta-oe/recipes-support/libiio/libiio_git.bb
+++ b/meta-oe/recipes-support/libiio/libiio_git.bb
@@ -24,6 +24,8 @@ inherit cmake python3native systemd setuptools3
 
 EXTRA_OECMAKE = " \
     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+    -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \
+    -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines' \
     -DUDEV_RULES_INSTALL_DIR=${nonarch_base_libdir}/udev/rules.d \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '-DWITH_SYSTEMD=ON 
-DSYSTEMD_UNIT_INSTALL_DIR=${systemd_system_unitdir}', '', d)} \
 "
-- 
2.40.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#102608): 
https://lists.openembedded.org/g/openembedded-devel/message/102608
Mute This Topic: https://lists.openembedded.org/mt/98917546/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to