diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-27 11:35:02 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-05-27 11:35:02 -0400 |
commit | bb038280d2b5e12916d14587fd5e82455b456698 (patch) | |
tree | d33aa2ec22b9cc4fd7cce68a152cc6078a37a0ff /bzip2 | |
parent | cd85778597a709c5d589c9f984d039e5b96bafca (diff) | |
download | spm_packages-bb038280d2b5e12916d14587fd5e82455b456698.tar.gz |
Darwin pass 2
Diffstat (limited to 'bzip2')
-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 |