mirror of git://git.musl-libc.org/musl
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.
This commit is contained in:
parent
f600105eef
commit
0b3e2257fa
2
Makefile
2
Makefile
|
@ -112,7 +112,7 @@ lib/musl-gcc.specs: tools/musl-gcc.specs.sh config.mak
|
||||||
sh $< "$(includedir)" "$(libdir)" "$(LDSO_PATHNAME)" > $@
|
sh $< "$(includedir)" "$(libdir)" "$(LDSO_PATHNAME)" > $@
|
||||||
|
|
||||||
tools/musl-gcc: config.mak
|
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 $@
|
chmod +x $@
|
||||||
|
|
||||||
$(DESTDIR)$(bindir)/%: tools/%
|
$(DESTDIR)$(bindir)/%: tools/%
|
||||||
|
|
Loading…
Reference in New Issue