summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2011-11-26 20:28:02 (GMT)
committerMark Brand <mabrand@mabrand.nl>2011-11-26 20:28:02 (GMT)
commit26a746fe7443471f2ebe32b13061d6b1513a30b3 (patch)
tree3dc084e33ee2c4c7ffcb35226c6e5cae8f45b05b
parent69c57d9d95084202e286ec5015f1a315fb379326 (diff)
downloadmxe-26a746fe7443471f2ebe32b13061d6b1513a30b3.zip
mxe-26a746fe7443471f2ebe32b13061d6b1513a30b3.tar.gz
mxe-26a746fe7443471f2ebe32b13061d6b1513a30b3.tar.bz2
add BUILD and install config.guess and config.sub
-rw-r--r--Makefile1
-rw-r--r--src/gcc.mk4
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2d9b5f1..7cabda1 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ MAKEFILE := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
TOP_DIR := $(patsubst %/,%,$(dir $(MAKEFILE)))
PATH := $(PREFIX)/bin:$(PATH)
SHELL := bash
+BUILD := $(shell config.guess 2>/dev/null)
INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
LIBTOOL := $(shell glibtool --help >/dev/null 2>&1 && echo g)libtool
LIBTOOLIZE := $(shell glibtoolize --help >/dev/null 2>&1 && echo g)libtoolize
diff --git a/src/gcc.mk b/src/gcc.mk
index 478c560..d23d9e5 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -29,6 +29,10 @@ define $(PKG)_BUILD
cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gcc-mpfr)
mv '$(1)/$(gcc-mpfr_SUBDIR)' '$(1)/mpfr'
+ # install config.guess for general use
+ $(INSTALL) -m755 '$(1)/config.guess' '$(PREFIX)/bin'
+ $(INSTALL) -m755 '$(1)/config.sub' '$(PREFIX)/bin'
+
# build GCC and support libraries
mkdir '$(1).build'
cd '$(1).build' && '$(1)/configure' \