From 4991ae7261671f00040c85a1c2d2eb39fd6a05ae Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 10 Jan 2022 13:05:38 -0800 Subject: [PATCH] Fix Darwin build. The recent changes to strip harder on Linux broke Darwin, which doesn't have those options. --- configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure b/configure index dedc9779..af8e1134 100755 --- a/configure +++ b/configure @@ -33,7 +33,14 @@ fi # you call scripts/make.sh and friends directly. [ -z "$CC" ] && CC=cc -[ -z "$STRIP" ] && STRIP="strip -s -R .note* -R .comment" + +# Strip harder on Linux. +# Darwin's strip doesn't have equivalents of the binutils -s or -R. +[ -z "$STRIP" ] && STRIP=strip +if [ "$(uname)" != "Darwin" ] +then + [ -z "$STRIP" ] && STRIP="strip -s -R .note* -R .comment" +fi # If HOSTCC needs CFLAGS or LDFLAGS, just add them to the variable # ala HOSTCC="blah-cc --static" -- 2.39.2