summaryrefslogtreecommitdiffstats
path: root/tools/rbspeex
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-18 18:53:48 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-10-18 19:16:27 +0200
commita05d061aa384863e601c7989b363f8ef70dad34f (patch)
tree49eafb663c49b8ce203ab17b6bb5f9140eabf7b6 /tools/rbspeex
parentd097742155873c8597f1b5adcce95fa17f135002 (diff)
downloadrockbox-a05d061aa3.tar.gz
rockbox-a05d061aa3.tar.bz2
rockbox-a05d061aa3.zip
rbutil: Pass isysroot to rbutil libs on macOS.
On macOS we pass the full path to the compiler. On recent versions this causes the compiler to not find its SDK path, this needs to get passed via the isysroot option. Change-Id: Iea2820e1755cc80e12691119dfa31d70938ea511
Diffstat (limited to 'tools/rbspeex')
-rw-r--r--tools/rbspeex/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index 231cdb5517..b33534695c 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -41,6 +41,9 @@ ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
# that to determine if we need to set arch and isysroot.
ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__)
CFLAGS += -mmacosx-version-min=10.5
+ifneq ($(ISYSROOT),)
+CFLAGS += -isysroot $(ISYSROOT)
+endif
else
# when building libs for OS X 10.4+ build for both i386 and ppc at the same time.
# This creates fat objects, and ar can only create the archive but not operate