One of the changes in gcc v14 is making implicit-function-declaration an
error.  For some older software packages the easiest fix is to add
-fpermissive to the compile line.

Signed-off-by: Ryan Eatmon <[email protected]>
---
 meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb   | 2 ++
 meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb 
b/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb
index a2ade425..a39f8df8 100644
--- a/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb
+++ b/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb
@@ -20,6 +20,8 @@ S = "${WORKDIR}/git"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
+EXTRA_OEMAKE = "CC="${CC} -fpermissive""
+
 do_compile() {
 # build Master sample application
     cd ${S}/CCIEF-BASIC_Master/build/linux
diff --git a/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb 
b/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb
index 7f734558..751f91c0 100644
--- a/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb
+++ b/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb
@@ -14,7 +14,8 @@ SRC_URI = 
"git://github.com/ptitiano/cpuloadgen.git;protocol=https;branch=${BRAN
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = "DESTDIR=${D}${bindir} CROSS_COMPILE=${TARGET_PREFIX} 
CC="${CC}""
+EXTRA_OEMAKE = "DESTDIR=${D}${bindir} CROSS_COMPILE=${TARGET_PREFIX} 
CC="${CC}" CFLAGS="${CFLAGS}""
+CFLAGS += "-fpermissive"
 
 do_install () {
     install -d ${D}${bindir}
-- 
2.17.1



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


Reply via email to