summaryrefslogtreecommitdiff
path: root/bzip2/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bzip2/build.sh')
-rw-r--r--bzip2/build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bzip2/build.sh b/bzip2/build.sh
index 7428421..0c43630 100644
--- a/bzip2/build.sh
+++ b/bzip2/build.sh
@@ -48,8 +48,8 @@ function package() {
rm -f libbz2.${lib_type}*
# Reconstruct symlinks
- ln -s libbz2.${lib_format_darwin} libbz2.${lib_format_darwin_short}
- ln -s libbz2.${lib_format_darwin} libbz2.${lib_type}
+ ln -s -f libbz2.${lib_format_darwin} libbz2.${lib_format_darwin_short}
+ ln -s -f libbz2.${lib_format_darwin} libbz2.${lib_type}
# Reset LC_ID_DYLIB to use expected naming conventions
install_name_tool -id libbz2.${lib_format_darwin_short} \
@@ -68,7 +68,7 @@ function package() {
# Install binaries
cp -a bzip2-shared "${_pkgdir}${_prefix}"/bin/bzip2
- ln -s libbz2.${lib_format} libbz2.${lib_type}
+ ln -s -f libbz2.${lib_format} libbz2.${lib_type}
cp -a libbz2.${lib_format} "${_pkgdir}${_prefix}"/lib
cp -a libbz2.${lib_format_short} "${_pkgdir}${_prefix}"/lib
cp -a libbz2.${lib_type} "${_pkgdir}${_prefix}"/lib