diff --git a/common/hooks/pre-install/00-libdir.sh b/common/hooks/pre-install/00-libdir.sh index f19f68088f..4c57fbcb1e 100644 --- a/common/hooks/pre-install/00-libdir.sh +++ b/common/hooks/pre-install/00-libdir.sh @@ -1,7 +1,9 @@ # This hook creates the wordsize specific libdir symlink. hook() { - if [ "${pkgname}" != "base-files" ]; then + if [ -L ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE} ]; then + return 0 + elif [ "${pkgname}" != "base-files" ]; then vmkdir usr/lib ln -sf lib ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE} fi