diff mbox series

[meta-java] Fix build error as following:

Message ID 20230616023514.53716-1-wangmy@fujitsu.com
State New
Headers show
Series [meta-java] Fix build error as following: | expand

Commit Message

Mingyu Wang (Fujitsu) June 16, 2023, 2:35 a.m. UTC
From: Lei Maohui <leimaohui@fujitsu.com>

| g++: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?
| g++: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?
| g++: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?
| g++: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?
| g++: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
 recipes-core/openjdk/openjdk-8-common.inc | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 16e3816..5cb8fc4 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -26,6 +26,9 @@  SRC_URI = "\
     ${PATCHES_URI} \
 "
 
+export TARGET_CFLAGS
+export TARGET_CXXFLAGS
+
 do_configure:prepend () {
     export TOPDIR=${S}
     sed -i 's#\$TOPDIR#${S}#g' ${S}/common/autoconf/configure.ac