diff options
Diffstat (limited to 'src/binutils.mk')
-rw-r--r-- | src/binutils.mk | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/binutils.mk b/src/binutils.mk index 6d29e94..50e96b3 100644 --- a/src/binutils.mk +++ b/src/binutils.mk @@ -1,14 +1,11 @@ -# This file is part of mingw-cross-env. -# See doc/index.html for further information. +# This file is part of MXE. +# See index.html for further information. -# GNU Binutils PKG := binutils $(PKG)_IGNORE := -$(PKG)_VERSION := 2.21.1a -$(PKG)_CHECKSUM := 525255ca6874b872540c9967a1d26acfbc7c8230 -$(PKG)_SUBDIR := binutils-2.21.1 +$(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) $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE) $(PKG)_DEPS := @@ -21,8 +18,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 \ |