From: kub Date: Sat, 12 Dec 2020 13:20:05 +0000 (+0100) Subject: libretro, improve toolchain path handling for GCW0 X-Git-Tag: v2.00~648 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d900cc4fd4d111925397e40718a3b78980947ea;p=picodrive.git libretro, improve toolchain path handling for GCW0 --- diff --git a/Makefile.libretro b/Makefile.libretro index 32498b34..eb9c20ca 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -415,8 +415,12 @@ else ifeq ($(platform), emscripten) # GCW0 else ifeq ($(platform), gcw0) TARGET := $(TARGET_NAME)_libretro.so - CC = mipsel-linux-gcc - AR = mipsel-linux-ar +ifeq (,$(shell command -v $(GCW0_PREFIX)mipsel-gcw0-linux-uclibc-gcc 2>/dev/null)) + # locate the toolchain for buildbot if it isn't in path or prefix not set + GCW0_PREFIX = /opt/gcw0-toolchain/usr/bin/ +endif + CC = $(GCW0_PREFIX)mipsel-linux-gcc + AR = $(GCW0_PREFIX)mipsel-linux-ar SHARED := -shared -nostdlib fpic := -fPIC LIBM :=