From 26a746fe7443471f2ebe32b13061d6b1513a30b3 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Sat, 26 Nov 2011 21:28:02 +0100 Subject: add BUILD and install config.guess and config.sub --- Makefile | 1 + src/gcc.mk | 4 ++++ 2 files changed, 5 insertions(+) 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' \ -- cgit v0.12