commit 01c16bf8f4e68c838994716e77bd254b86a989bc Author: Isaac Dunham Date: Thu Sep 20 16:30:00 2012 -0700 Allow REALGCC to set the compiler for musl-gcc to use diff --git a/Makefile b/Makefile index 10c174c..f62635d 100644 --- a/Makefile +++ b/Makefile @@ -112,7 +112,7 @@ lib/musl-gcc.specs: tools/musl-gcc.specs.sh config.mak sh $< "$(includedir)" "$(libdir)" "$(LDSO_PATHNAME)" > $@ tools/musl-gcc: config.mak - printf '#!/bin/sh\nexec gcc "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@ + printf '#!/bin/sh\n[ -z "$$REALGCC" ] && REALGCC=gcc\nexec $$REALGCC "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@ chmod +x $@ $(DESTDIR)$(bindir)/%: tools/%