diff options
Diffstat (limited to 'bzip2/build.sh')
-rw-r--r-- | bzip2/build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
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 |