/
configure.sh
executable file
·36 lines (30 loc) · 1.06 KB
/
configure.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
HERE=$(realpath $(dirname $0))
. "${HERE}/setup.sh"
extra_configure_args=""
if [[ "${HOST}" != "${TARGET}" ]]; then
extra_configure_args="${extra_configure_args} --disable-ddr --openjdk-target=$TARGET"
if [[ "${TARGET}" == "riscv64-linux-gnu" ]]; then
if [ -d "/opt/riscv/sysroot" ]; then
sysroot="/opt/riscv/sysroot"
elif [ -d "/opt/cross/riscv64" ]; then
sysroot="/opt/cross/riscv64"
else
echo "ERROR: no cross-compilation sysroot found!"
fi
extra_configure_args="${extra_configure_args} --with-sysroot=$sysroot"
fi
fi
pushd openj9-openjdk-jdk11
bash configure \
--disable-warnings-as-errors \
--disable-warnings-as-errors-openj9 \
--with-cmake \
--with-build-jdk=$JAVA_HOME \
--with-boot-jdk=$JAVA_HOME \
--with-freemarker-jar="${HERE}/freemarker-2.3.8/lib/freemarker.jar" \
--with-extra-cflags='-O0 -ggdb' \
--with-extra-cxxflags='-O0 -ggdb' \
${extra_configure_args} \
--with-debug-level=${CONFIG}
popd