diff options
Diffstat (limited to 'src/binutils.mk')
-rw-r--r-- | src/binutils.mk | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/binutils.mk b/src/binutils.mk index 6d29e94..22259ea 100644 --- a/src/binutils.mk +++ b/src/binutils.mk @@ -4,9 +4,9 @@ # GNU Binutils PKG := binutils $(PKG)_IGNORE := -$(PKG)_VERSION := 2.21.1a -$(PKG)_CHECKSUM := 525255ca6874b872540c9967a1d26acfbc7c8230 -$(PKG)_SUBDIR := binutils-2.21.1 +$(PKG)_VERSION := 2.22 +$(PKG)_CHECKSUM := 65b304a0b9a53a686ce50a01173d1f40f8efe404 +$(PKG)_SUBDIR := binutils-$($(PKG)_VERSION) $(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.bz2 $(PKG)_WEBSITE := http://www.gnu.org/software/binutils/ $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE) @@ -21,8 +21,17 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD + # install config.guess for general use + $(INSTALL) -d '$(PREFIX)/bin' + $(INSTALL) -m755 '$(1)/config.guess' '$(PREFIX)/bin/' + + # install target-specific autotools config file + $(INSTALL) -d '$(PREFIX)/$(TARGET)/share' + echo "ac_cv_build=`$(1)/config.guess`" > '$(PREFIX)/$(TARGET)/share/config.site' + cd '$(1)' && ./configure \ --target='$(TARGET)' \ + --build="`config.guess`" \ --prefix='$(PREFIX)' \ --with-gcc \ --with-gnu-ld \ |