From 9a8173994552f7060e4a347b799b4ac7255e5d9f Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 15 May 2024 17:28:12 +0200 Subject: fix amd64 builds on macos fix homebrew_prefix --- build_single.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'build_single.sh') diff --git a/build_single.sh b/build_single.sh index b9da372..4130f8a 100755 --- a/build_single.sh +++ b/build_single.sh @@ -148,10 +148,13 @@ pushd $repo/contrib/depends MACOS_LIBS_DIR="${PWD}/host-apple-darwin" rm -rf ${MACOS_LIBS_DIR} mkdir -p ${MACOS_LIBS_DIR}/lib - export HOMEBREW_PREFIX=/opt/homebrew - if [[ ! -d "$HOMEBREW_PREFIX" ]]; + if [[ "x$HOMEBREW_PREFIX" == "x" ]]; then - export HOMEBREW_PREFIX=/usr/local + export HOMEBREW_PREFIX=/opt/homebrew + if [[ ! -d "$HOMEBREW_PREFIX" ]]; + then + export HOMEBREW_PREFIX=/usr/local + fi fi verbose_copy "${HOMEBREW_PREFIX}/lib/libunbound.a" ${MACOS_LIBS_DIR}/lib/libunbound.a verbose_copy "${HOMEBREW_PREFIX}/lib/libboost_chrono-mt.a" ${MACOS_LIBS_DIR}/lib/libboost_chrono-mt.a -- cgit v1.2.3