Skip to contentSkip to conversation

Fix build error as following:

PATCH New [email protected] 1 participant 1 message Jun 16, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build error as following:

From: Lei Maohui <[email protected]>

| 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=’?
---
 recipes-core/openjdk/openjdk-8-common.inc | 3 +++
 1 file changed, 3 insertions(+)
recipes-core/openjdk/openjdk-8-common.inc +3 -0
index 16e3816..5cb8fc4 100644
@@ -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
Signature · 1 line
2.34.1