summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 57f6e31..e6dd8b3 100644
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,9 @@ INST_BASE = $(PWD)/inst.$(ARCH)
SUITEDIR = /opt/dev-tools/gcc-suite
-INST_BASE_LINUX = $(PWD)/inst.x86-linux64
+INSTALLDIR ?= $(TOP)
+
+INST_BASE_LINUX = $(INSTALLDIR)/inst.x86-linux64
XGCC_INST_DIR = $(INST_BASE_LINUX)/mingw64
XGCC_PREFIX = $(XGCC_TARGET64)-
@@ -739,9 +741,8 @@ wingcc-finish:
find $(WINGCC_INST_DIR) -type f -name "*.py" | xargs rm -f
cd $(WINGCC_INST_DIR) && rm -Rf share
cd $(WINGCC_INST_DIR) && rm -f mingw
- # x86_64-w64-mingw32-gdb-add-index.exe is a script and causes strip to fail
cd $(WINGCC_INST_DIR) ;\
- find . -type f -name "*.exe" | xargs $(XGCC_BINPATH)/$(XGCC_PREFIX)strip
+ find . -type f -name "*.exe" | xargs $(XGCC_BINPATH)/$(XGCC_PREFIX)strip; true
#
cp -f $(SOURCE_DIR)/mingw.gcc.specs \
$(WINGCC_INST_DIR)/lib/gcc/$(XGCC_TARGET64)/$(VERSION_GCC)/specs