diff options
Diffstat (limited to 'recipes-core/icedtea/icedtea7-native.inc')
-rw-r--r-- | recipes-core/icedtea/icedtea7-native.inc | 72 |
1 files changed, 37 insertions, 35 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc index b0b9419..d6f8fd7 100644 --- a/recipes-core/icedtea/icedtea7-native.inc +++ b/recipes-core/icedtea/icedtea7-native.inc | |||
@@ -16,24 +16,28 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} | |||
16 | PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" | 16 | PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" |
17 | 17 | ||
18 | OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}" | 18 | OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}" |
19 | CFLAGS_append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ' -DHEADLESS=true', d)}" | 19 | CFLAGS:append = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', ' -DHEADLESS=true', d)}" |
20 | 20 | ||
21 | # Disable dead store elimination and set C++ standard to C++98. | 21 | # Disable dead store elimination and set C++ standard to C++98. |
22 | # There are dead stores in the JVM that would be pretty hard to | 22 | # There are dead stores in the JVM that would be pretty hard to |
23 | # remove, so disable the optimisation in the compiler. | 23 | # remove, so disable the optimisation in the compiler. |
24 | CFLAGS_append = " -fno-tree-dse" | 24 | CFLAGS:append = " -std=gnu++98 -fno-tree-dse -fno-tree-vectorize" |
25 | CXXFLAGS_append = " -fno-tree-dse" | 25 | CXXFLAGS:append = " -std=gnu++98 -fno-tree-dse" |
26 | CXX_append = " -std=gnu++98" | ||
27 | 26 | ||
28 | # WORKAROUND: ignore errors from new compilers | 27 | # WORKAROUND: ignore errors from new compilers |
29 | CFLAGS_append = " -Wno-error=stringop-overflow -Wno-error=return-type" | 28 | CFLAGS:append = " -Wno-error=stringop-overflow -Wno-error=return-type" |
29 | |||
30 | # oe.utils.get_host_compiler_version returns "gcc, 9.2" and we want -> "9" | ||
31 | HOST_COMPILER_MAJOR="${@oe.utils.get_host_compiler_version(d)[1].split(".", 2)[0]}" | ||
32 | CFLAGS:append = " ${@oe.utils.less_or_equal('HOST_COMPILER_MAJOR', '8', '', ' -Wno-error=format-overflow', d)}" | ||
30 | 33 | ||
31 | # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources | 34 | # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources |
32 | CFLAGS_append = " -fcommon" | 35 | CFLAGS:append = " -fcommon" |
33 | 36 | ||
34 | inherit native java autotools pkgconfig | 37 | inherit java autotools pkgconfig |
35 | inherit openjdk-build-helper | 38 | inherit openjdk-build-helper |
36 | inherit python3native | 39 | inherit python3native |
40 | inherit native | ||
37 | 41 | ||
38 | JAVA_HOME[unexport] = "1" | 42 | JAVA_HOME[unexport] = "1" |
39 | 43 | ||
@@ -61,43 +65,41 @@ B = "${S}/build" | |||
61 | # openjdk looks in /usr/include and /usr/lib for freetype by default. | 65 | # openjdk looks in /usr/include and /usr/lib for freetype by default. |
62 | export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2" | 66 | export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2" |
63 | export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}" | 67 | export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}" |
68 | export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}" | ||
64 | 69 | ||
65 | # libfreetype.so.6 is copied from STAGING_LIBDIR | 70 | # libfreetype.so.6 is copied from STAGING_LIBDIR |
66 | # which is already stripped. | 71 | # which is already stripped. |
67 | INSANE_SKIP_${PN} = "already-stripped" | 72 | INSANE_SKIP:${PN} = "already-stripped" |
68 | 73 | ||
69 | EXTRA_OECONF = "\ | 74 | EXTRA_OECONF = "\ |
70 | --with-parallel-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ | 75 | --with-parallel-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ |
71 | \ | 76 | --disable-tests \ |
72 | --disable-tests \ | 77 | --disable-hotspot-tests \ |
73 | --disable-hotspot-tests \ | 78 | --disable-langtools-tests \ |
74 | --disable-langtools-tests \ | 79 | --disable-jdk-tests \ |
75 | --disable-jdk-tests \ | 80 | --disable-pulse-java \ |
76 | --disable-pulse-java \ | 81 | --disable-docs \ |
77 | --disable-docs \ | 82 | --disable-nss \ |
78 | --disable-nss \ | 83 | --disable-system-lcms \ |
79 | --disable-system-lcms \ | 84 | --disable-system-gtk \ |
80 | --disable-system-gtk \ | 85 | --with-jdk-home=${WORKDIR}/fake-jdk \ |
81 | \ | 86 | --with-javac=${STAGING_BINDIR_NATIVE}/javac \ |
82 | --with-jdk-home=${WORKDIR}/fake-jdk \ | 87 | --with-rhino=${STAGING_DATADIR_NATIVE}/java/rhino.jar \ |
83 | --with-javac=${STAGING_BINDIR_NATIVE}/javac \ | 88 | --with-openjdk-src-zip=${DL_DIR}/${OPENJDK_FILE_DOWNLOAD} \ |
84 | --with-rhino=${STAGING_DATADIR_NATIVE}/java/rhino.jar \ | 89 | --with-hotspot-src-zip=${DL_DIR}/${HOTSPOT_FILE_DOWNLOAD} \ |
85 | \ | 90 | --with-corba-src-zip=${DL_DIR}/${CORBA_FILE_DOWNLOAD} \ |
86 | --with-openjdk-src-zip=${DL_DIR}/${OPENJDK_FILE} \ | 91 | --with-jaxp-src-zip=${DL_DIR}/${JAXP_FILE_DOWNLOAD} \ |
87 | --with-hotspot-src-zip=${DL_DIR}/${HOTSPOT_FILE} \ | 92 | --with-jaxws-src-zip=${DL_DIR}/${JAXWS_FILE_DOWNLOAD} \ |
88 | --with-corba-src-zip=${DL_DIR}/${CORBA_FILE} \ | 93 | --with-jdk-src-zip=${DL_DIR}/${JDK_FILE_DOWNLOAD} \ |
89 | --with-jaxp-src-zip=${DL_DIR}/${JAXP_FILE} \ | 94 | --with-langtools-src-zip=${DL_DIR}/${LANGTOOLS_FILE_DOWNLOAD} \ |
90 | --with-jaxws-src-zip=${DL_DIR}/${JAXWS_FILE} \ | 95 | ac_cv_path_UNZIP_BIN="${STAGING_BINDIR_NATIVE}/unzip" \ |
91 | --with-jdk-src-zip=${DL_DIR}/${JDK_FILE} \ | 96 | " |
92 | --with-langtools-src-zip=${DL_DIR}/${LANGTOOLS_FILE} \ | ||
93 | ac_cv_path_UNZIP_BIN="${STAGING_BINDIR_NATIVE}/unzip" \ | ||
94 | " | ||
95 | 97 | ||
96 | JDK_DIR = "icedtea7-native" | 98 | JDK_DIR = "icedtea7-native" |
97 | 99 | ||
98 | JDK_INSTALL_DIR = "${D}/${libdir_jvm}/${JDK_DIR}" | 100 | JDK_INSTALL_DIR = "${D}/${libdir_jvm}/${JDK_DIR}" |
99 | 101 | ||
100 | do_configure_prepend() { | 102 | do_configure:prepend() { |
101 | arch="${@openjdk_build_helper_get_icedtea_arch(d)}" | 103 | arch="${@openjdk_build_helper_get_icedtea_arch(d)}" |
102 | libarch="${@openjdk_build_helper_get_icedtea_arch(d)}" | 104 | libarch="${@openjdk_build_helper_get_icedtea_arch(d)}" |
103 | 105 | ||
@@ -128,7 +130,7 @@ do_configure_prepend() { | |||
128 | 130 | ||
129 | POST_CONFIGURE_CLEAN_X11 = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'rm openjdk*/jdk/src/solaris/classes/sun/awt/X11/*.java', d)}" | 131 | POST_CONFIGURE_CLEAN_X11 = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'rm openjdk*/jdk/src/solaris/classes/sun/awt/X11/*.java', d)}" |
130 | 132 | ||
131 | do_configure_append() { | 133 | do_configure:append() { |
132 | oe_runmake patch-fsg | 134 | oe_runmake patch-fsg |
133 | 135 | ||
134 | for F in openjdk/jdk/make/common/shared/Compiler-gcc.gmk ; | 136 | for F in openjdk/jdk/make/common/shared/Compiler-gcc.gmk ; |