From ab0d16f4e155d1f68c6c65065bd1144d34375d95 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 1 Jun 2025 09:11:33 +0300 Subject: [PATCH] install_easy: fix broken compile on mac --- install_easy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install_easy.sh b/install_easy.sh index 96ade3fc..ff35e3ea 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -80,6 +80,7 @@ check_bins() fix_perms_bin_test "$EXEDIR" local arch="$(get_bin_arch)" local make_target + local cf="-march=native" [ "$FORCE_BUILD" = "1" ] && { echo forced build mode if [ "$arch" = "my" ]; then @@ -95,12 +96,13 @@ check_bins() case $SYSTEM in macos) make_target=mac + cf= ;; systemd) make_target=systemd ;; esac - CFLAGS="-march=native ${CFLAGS}" make -C "$EXEDIR" $make_target || { + CFLAGS="${cf:+$cf }${CFLAGS}" make -C "$EXEDIR" $make_target || { echo could not compile make -C "$EXEDIR" clean exitp 8