From: Mike Lowis Date: Fri, 6 May 2016 16:25:35 +0000 (-0400) Subject: Fixed the musl specs file and musl-gcc wrapper script to use absolute paths X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c2318b63e2af574dfd67f51eefccc6d3f8f4f44d;p=proto%2Falbase.git Fixed the musl specs file and musl-gcc wrapper script to use absolute paths --- diff --git a/source/musl/Rules.mk b/source/musl/Rules.mk index 2818658f..956b09b2 100644 --- a/source/musl/Rules.mk +++ b/source/musl/Rules.mk @@ -95,11 +95,11 @@ $(LIBDIR)/crtn.o: $(MUSL_SUBDIR)/crt/x86_64/crtn.s $(MUSL_CC_CMD) -DCRT -c -o $@ $< $(BINDIR)/musl-gcc: $(LIBDIR)/libc.a $(LIBDIR)/musl-gcc.specs - printf '#!/bin/sh\nexec "$${REALGCC:-$(WRAPCC_GCC)}" "$$@" -specs "%s/musl-gcc.specs"\n' "$(LIBDIR)" > $@ + printf '#!/bin/sh\nexec "$${REALGCC:-$(WRAPCC_GCC)}" "$$@" -specs "%s/musl-gcc.specs"\n' "$(PWD)/$(LIBDIR)" > $@ chmod +x $@ $(LIBDIR)/musl-gcc.specs: $(MUSL_SUBDIR)/tools/musl-gcc.specs.sh - sh $< "$(BUILDDIR)/include" "$(LIBDIR)" "$(LDSO_PATHNAME)" > $@ + sh $< "$(PWD)/$(BUILDDIR)/include" "$(PWD)/$(LIBDIR)" "$(LDSO_PATHNAME)" > $@ # Objects with stack protector disabled $(MUSL_OBJDIR)/src/env/__init_tls.o: $(MUSL_SUBDIR)/src/env/__init_tls.c