8307110: zero build broken after JDK-8304265

Reviewed-by: erikj
This commit is contained in:
Jorn Vernee 2023-04-28 21:43:33 +00:00
parent da9efee1c2
commit 4818c798bc
2 changed files with 7 additions and 3 deletions

View File

@ -599,10 +599,11 @@ var getJibProfilesProfiles = function (input, common, data) {
"linux-aarch64-zero": {
target_os: "linux",
target_cpu: "aarch64",
dependencies: ["devkit", "gtest"],
dependencies: ["devkit", "gtest", "libffi"],
configure_args: concat(common.configure_args_64bit, [
"--with-zlib=system",
"--with-jvm-variants=zero",
"--with-libffi=" + input.get("libffi", "home_path"),
"--enable-libffi-bundling"
])
},
@ -611,10 +612,11 @@ var getJibProfilesProfiles = function (input, common, data) {
target_os: "linux",
target_cpu: "x86",
build_cpu: "x64",
dependencies: ["devkit", "gtest"],
dependencies: ["devkit", "gtest", "libffi"],
configure_args: concat(common.configure_args_32bit, [
"--with-zlib=system",
"--with-jvm-variants=zero",
"--with-libffi=" + input.get("libffi", "home_path"),
"--enable-libffi-bundling"
])
}
@ -1272,7 +1274,7 @@ var getJibProfilesDependencies = function (input, common) {
libffi: {
organization: common.organization,
module: "libffi-" + input.build_platform,
module: "libffi-" + input.target_platform,
ext: "tar.gz",
revision: "3.4.2+1.0"
},

View File

@ -81,6 +81,7 @@ cd $LIBFFI_DIR
if [ ! -e $LIBFFI_DIR/configure ]; then
bash ./autogen.sh
fi
# For Linux/x86, add --build=i686-pc-linux-gnu CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
bash ./configure --prefix=$INSTALL_DIR CC=$DEVKIT_DIR/bin/gcc CXX=$DEVKIT_DIR/bin/g++
# Run with nice to keep system usable during build.
@ -91,6 +92,7 @@ mkdir -p $IMAGE_DIR
if [ ! -e $IMAGE_DIR/lib/libffi.so ]; then
echo "Copying libffi.so* to image"
mkdir -p $IMAGE_DIR/lib
# For Linux/x86 it's under /lib/ instead of /lib64/
cp -a $INSTALL_DIR/lib64/libffi.so* $IMAGE_DIR/lib/
fi
if [ ! -e $IMAGE_DIR/include/ ]; then