diff options
Diffstat (limited to 'recipes-core/openjdk/openjdk-8-native.inc')
-rw-r--r-- | recipes-core/openjdk/openjdk-8-native.inc | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc index 321a43d..c02e183 100644 --- a/recipes-core/openjdk/openjdk-8-native.inc +++ b/recipes-core/openjdk/openjdk-8-native.inc | |||
@@ -8,8 +8,8 @@ DEPENDS = "\ | |||
8 | " | 8 | " |
9 | 9 | ||
10 | PACKAGECONFIG ??= "gif jpeg png zlib" | 10 | PACKAGECONFIG ??= "gif jpeg png zlib" |
11 | PACKAGECONFIG[x11] = "--with-x,,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" | 11 | PACKAGECONFIG[x11] = "--with-x,,libx11-native xorgproto-native libxt-native libxext-native libxrender-native libxtst-native" |
12 | PACKAGECONFIG[cups] = "--with-cups,,cups" | 12 | PACKAGECONFIG[cups] = "--with-cups,,cups-native" |
13 | PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" | 13 | PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" |
14 | PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib-native" | 14 | PACKAGECONFIG[gif] = "--with-giflib=system,--with-giflib=bundled,giflib-native" |
15 | PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," | 15 | PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," |
@@ -17,7 +17,7 @@ PACKAGECONFIG[jpeg] = "--with-libjpeg=system,--with-libjpeg=bundled,jpeg-native" | |||
17 | PACKAGECONFIG[png] = "--with-libpng=system,--with-libpng=bundled,libpng-native" | 17 | PACKAGECONFIG[png] = "--with-libpng=system,--with-libpng=bundled,libpng-native" |
18 | PACKAGECONFIG[zlib] = "--with-zlib=system,--with-zlib=bundled,zlib-native" | 18 | PACKAGECONFIG[zlib] = "--with-zlib=system,--with-zlib=bundled,zlib-native" |
19 | 19 | ||
20 | EXTRA_OECONF_append = "\ | 20 | EXTRA_OECONF:append = "\ |
21 | --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ | 21 | --with-jobs=${@openjdk_build_helper_get_parallel_make(d)} \ |
22 | \ | 22 | \ |
23 | --with-tools-dir=${STAGING_DIR_NATIVE} \ | 23 | --with-tools-dir=${STAGING_DIR_NATIVE} \ |
@@ -32,36 +32,36 @@ EXTRA_OECONF_append = "\ | |||
32 | " | 32 | " |
33 | # --with-boot-jdk=${WORKDIR}/fake-jdk | 33 | # --with-boot-jdk=${WORKDIR}/fake-jdk |
34 | 34 | ||
35 | inherit native | ||
36 | |||
37 | require openjdk-8-common.inc | 35 | require openjdk-8-common.inc |
38 | 36 | ||
39 | CFLAGS_append = " ${@jdk_cpp_options(d)}" | 37 | inherit native |
40 | CPPFLAGS_append = "${@jdk_cpp_options(d)}" | 38 | |
41 | CXXFLAGS_append = " ${@jdk_cpp_options(d)}" | 39 | CFLAGS:append = " ${@jdk_cpp_options(d)}" |
40 | CPPFLAGS:append = "${@jdk_cpp_options(d)}" | ||
41 | CXXFLAGS:append = " ${@jdk_cpp_options(d)}" | ||
42 | 42 | ||
43 | export MAKE_VERBOSE = "y" | 43 | export MAKE_VERBOSE = "y" |
44 | export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace" | 44 | export MFLAGS="${@jdk_make_options(d)} MAKE_VERBOSE=y QUIETLY= VERBOSE=-s LOG_LEVEL=trace" |
45 | 45 | ||
46 | EXTRA_OEMAKE_append = ' \ | 46 | EXTRA_OEMAKE:append = ' \ |
47 | ${@jdk_make_options(d)} \ | 47 | ${@jdk_make_options(d)} \ |
48 | MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \ | 48 | MAKE_VERBOSE=y VERBOSE=-s LOG_LEVEL=trace \ |
49 | QUIETLY= \ | 49 | QUIETLY= \ |
50 | images \ | 50 | images \ |
51 | ' | 51 | ' |
52 | 52 | ||
53 | do_configure_prepend() { | 53 | do_configure:prepend() { |
54 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" | 54 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" |
55 | export ${@jdk_environment_options(d)} | 55 | export ${@jdk_environment_options(d)} |
56 | unset CC CXX | 56 | unset CC CXX |
57 | } | 57 | } |
58 | 58 | ||
59 | do_compile_prepend() { | 59 | do_compile:prepend() { |
60 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" | 60 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" |
61 | rm -f "${B}/images/j2sdk-image/jre/lib/security/cacerts" | 61 | rm -f "${B}/images/j2sdk-image/jre/lib/security/cacerts" |
62 | } | 62 | } |
63 | 63 | ||
64 | do_compile_append() { | 64 | do_compile:append() { |
65 | set -x | 65 | set -x |
66 | mkdir -p ${B}/certs | 66 | mkdir -p ${B}/certs |
67 | for pem in $(find ${STAGING_DATADIR}/ca-certificates -name "*.crt") | 67 | for pem in $(find ${STAGING_DATADIR}/ca-certificates -name "*.crt") |
@@ -88,3 +88,6 @@ do_install() { | |||
88 | ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}${bindir}/$tool | 88 | ln -sf "../lib/jvm/${JDK_DIR}/bin/$tool" ${D}${bindir}/$tool |
89 | done | 89 | done |
90 | } | 90 | } |
91 | |||
92 | # FIXME libfreetype.so.6 is copied from STAGING_LIBDIR which is already stripped | ||
93 | INSANE_SKIP:${PN} = "already-stripped" | ||