diff mbox series

[v2,3/4] recipes: disable gcc option -Wincompatible-pointer-types

Message ID 20240608123510.1767305-3-kai.kang@windriver.com
State New
Headers show
Series fix incompatible pointer type compile errors | expand

Commit Message

Kai June 8, 2024, 12:35 p.m. UTC
From: Kai Kang <kai.kang@windriver.com>

It fails to run do_compile tasks for libdbd-mysql-perl and rrdtool with gcc
option -Wincompatible-pointer-types enabled by default. Disable it as
workaround.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb | 2 ++
 meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb        | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb b/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb
index fc505fe1e..919997914 100644
--- a/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb
+++ b/meta-oe/recipes-devtools/perl/libdbd-mysql-perl_4.050.bb
@@ -20,3 +20,5 @@  SRC_URI = "git://github.com/perl5-dbi/DBD-mysql.git;protocol=https;branch=master
 S = "${WORKDIR}/git"
 
 inherit cpan
+
+EXTRA_OEMAKE = ' CC="${CC} -Wno-incompatible-pointer-types"'
diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb b/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb
index cbe1af285..32ab911bc 100644
--- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb
+++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb
@@ -59,7 +59,7 @@  export STAGING_LIBDIR
 export STAGING_INCDIR
 
 # emulate cpan_do_configure
-EXTRA_OEMAKE = ' PERL5LIB="${PERL_ARCHLIB}" '
+EXTRA_OEMAKE = ' CC="${CC} -Wno-incompatible-pointer-types" PERL5LIB="${PERL_ARCHLIB}" '
 # Avoid do_configure error on some hosts
 
 do_configure() {