From bb038280d2b5e12916d14587fd5e82455b456698 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 27 May 2020 11:35:02 -0400 Subject: Darwin pass 2 --- bzip2/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bzip2') diff --git a/bzip2/build.sh b/bzip2/build.sh index 4ddf384..fb9f438 100644 --- a/bzip2/build.sh +++ b/bzip2/build.sh @@ -34,7 +34,7 @@ function package() { lib_format_short=${lib_type}.${version%.*} if [[ $(uname -s) == Darwin ]]; then lib_format_darwin=${version}.${lib_type} - lib_format_darwin_short=${version%.*}.${lib_type} + lib_format_darwin_short="${version%.*}".${lib_type} mv libbz2.${lib_format} libbz2.${lib_format_darwin} # Remove remaining Linux-style shared libraries @@ -48,6 +48,10 @@ function package() { install_name_tool -id libbz2.${lib_format_darwin_short} \ libbz2.${lib_format_darwin} + # Reset LC_LOAD_DYLIB record to use expected naming conventions + install_name_tool -change libbz2.${lib_format_short} libbz2.${lib_format_darwin_short} \ + bzip2-shared + lib_format=${lib_format_darwin} lib_format_short=${lib_format_darwin_short} fi -- cgit