From 03666ee78db829a00a120a1a60464615f1b0e8d5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 14 Jan 2023 18:13:41 +0100 Subject: MacOS: Add description to produce fat OpenJDK libraries for x86_64 and aarch64 --- make/scripts/make.macosx.jdk_lipo_libs.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 make/scripts/make.macosx.jdk_lipo_libs.sh (limited to 'make/scripts') diff --git a/make/scripts/make.macosx.jdk_lipo_libs.sh b/make/scripts/make.macosx.jdk_lipo_libs.sh new file mode 100644 index 0000000..3dcb9ab --- /dev/null +++ b/make/scripts/make.macosx.jdk_lipo_libs.sh @@ -0,0 +1,17 @@ +#! /bin/sh + +amd64_dir=$HOME/temurin-17.jdk.amd64.lib +arm64_dir=$HOME/temurin-17.jdk.arm64.lib +fat_dir=$HOME/temurin-17.jdk.fat.lib + +rm -rf $fat_dir +mkdir $fat_dir + +for i in $amd64_dir/*.dylib ; do + bname=`basename $i` + if [ -e $arm64_dir/$bname ] ; then + lipo -create $i $arm64_dir/$bname -output $fat_dir/$bname + else + echo missing $arm64_dir/$bname + fi +done -- cgit v1.2.3