Skip to content

Commit

Permalink
use sudo make install for macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Aug 10, 2024
1 parent 6704440 commit 4cb50c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pre_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ if [ -n "${IS_MACOS:-}" ]; then
awk '{print $2}'
)"
export MACOSX_DEPLOYMENT_TARGET="$min_ver"
make_install=(sudo make install)
else
make_install=(make install)
fi

JANSSON_HASH=6e85f42dabe49a7831dbdd6d30dca8a966956b51a9a50ed534b82afc3fa5b2f4
Expand Down Expand Up @@ -45,7 +48,7 @@ function build_simple {
(cd "$name_version" \
&& ./configure --prefix="$BUILD_PREFIX" \
&& make -j4 \
&& make install)
&& "${make_install[@]}")
touch "${name}-stamp"
}
function fetch_unpack {
Expand Down Expand Up @@ -114,7 +117,7 @@ function build_jansson {
(cd "${JANSSON_ROOT}" \
&& ./configure --prefix="$BUILD_PREFIX" \
&& make -j4 \
&& make install)
&& "${make_install[@]}")
touch jansson-stamp
}

Expand Down

0 comments on commit 4cb50c4

Please sign in to comment.