From 279eaecf584b05d543b78b900e50f53d84b341e4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 21 Oct 2026 18:13:59 -0500 Subject: [PATCH] MacOS does not support static linking. --- scripts/portability.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/portability.sh b/scripts/portability.sh index e72c644c..cd415bee 100644 --- a/scripts/portability.sh +++ b/scripts/portability.sh @@ -32,7 +32,8 @@ fi if [ -n "$ASAN" ]; then # Turn ASan on and disable most optimization to get more readable backtraces. # (Technically ASAN is just "-fsanitize=address" and the rest is optional.) - export CFLAGS="$CFLAGS -fsanitize=address -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls -static-libasan" + export CFLAGS="$CFLAGS -fsanitize=address -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls" + [ "$(uname)" != "Darwin" ] && CFLAGS+=" -static-libasan" export NOSTRIP=1 # Ignore leaks on exit. TODO export ASAN_OPTIONS="detect_leaks=0" -- 2.39.5