summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-21 13:47:26 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-21 13:47:26 -0400
commit0b3e2257fa9f4c4773f8aec1bdbccbc46a4d9477 (patch)
treedef75432a2dd066dc777ba658e6cc4549178b277 /Makefile
parentf600105eef74a636a0efd1f1d07170ce5df9aa64 (diff)
downloadmusl-0b3e2257fa9f4c4773f8aec1bdbccbc46a4d9477.tar.gz
musl-0b3e2257fa9f4c4773f8aec1bdbccbc46a4d9477.tar.bz2
musl-0b3e2257fa9f4c4773f8aec1bdbccbc46a4d9477.tar.xz
musl-0b3e2257fa9f4c4773f8aec1bdbccbc46a4d9477.zip
offer REALGCC variable to configure musl-gcc wrapper at runtime
this is useful when the underlying gcc is already a wrapper, which is the case at least on some uclibc-based system images. it's also useful for running an older/newer/nondefault version of gcc.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10c174ce..3c55c8f2 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\nexec "$${REALGCC:-gcc}" "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@
chmod +x $@
$(DESTDIR)$(bindir)/%: tools/%