2016-08-22 20:52:34 +01:00
|
|
|
# This file is part of MXE. See LICENSE.md for licensing information.
|
2008-11-08 08:42:47 +00:00
|
|
|
|
2009-04-05 13:00:17 +01:00
|
|
|
PKG := binutils
|
2016-12-18 05:43:56 +00:00
|
|
|
$(PKG)_WEBSITE := https://www.gnu.org/software/binutils/
|
|
|
|
$(PKG)_DESCR := GNU Binutils
|
2016-01-31 07:45:02 +00:00
|
|
|
# see http://lists.nongnu.org/archive/html/mingw-cross-env-list/2016-01/msg00013.html
|
|
|
|
# 2.26 causes incorrect dlls to be built with sjlj exceptions
|
|
|
|
$(PKG)_IGNORE := 2.26
|
|
|
|
$(PKG)_VERSION := 2.25.1
|
|
|
|
$(PKG)_CHECKSUM := b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22
|
2011-11-21 13:30:02 +00:00
|
|
|
$(PKG)_SUBDIR := binutils-$($(PKG)_VERSION)
|
2009-10-27 13:58:04 +00:00
|
|
|
$(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.bz2
|
2014-07-20 10:21:48 +01:00
|
|
|
$(PKG)_URL := http://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE)
|
2009-10-27 13:58:04 +00:00
|
|
|
$(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE)
|
2014-02-02 07:00:10 +00:00
|
|
|
$(PKG)_DEPS := pkgconf
|
2008-11-08 08:42:47 +00:00
|
|
|
|
|
|
|
define $(PKG)_UPDATE
|
2012-05-08 16:16:05 +01:00
|
|
|
$(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \
|
2010-05-20 21:38:49 +01:00
|
|
|
$(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \
|
2013-05-22 10:33:04 +01:00
|
|
|
$(SORT) -V | \
|
|
|
|
tail -1
|
2008-11-08 08:42:47 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(PKG)_BUILD
|
2008-11-08 18:06:50 +00:00
|
|
|
cd '$(1)' && ./configure \
|
2008-11-08 08:42:47 +00:00
|
|
|
--target='$(TARGET)' \
|
2014-02-02 07:00:10 +00:00
|
|
|
--build='$(BUILD)' \
|
2008-11-08 08:42:47 +00:00
|
|
|
--prefix='$(PREFIX)' \
|
2013-05-23 15:35:29 +01:00
|
|
|
--disable-multilib \
|
2016-02-01 04:08:16 +00:00
|
|
|
--enable-deterministic-archives \
|
2008-11-08 08:42:47 +00:00
|
|
|
--with-gcc \
|
|
|
|
--with-gnu-ld \
|
|
|
|
--with-gnu-as \
|
|
|
|
--disable-nls \
|
2009-11-12 00:24:47 +00:00
|
|
|
--disable-shared \
|
|
|
|
--disable-werror
|
2008-11-09 04:22:56 +00:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
2016-08-17 07:34:53 +01:00
|
|
|
$(MAKE) -C '$(1)' -j 1 $(INSTALL_STRIP_TOOLCHAIN)
|
2014-02-11 01:53:30 +00:00
|
|
|
|
|
|
|
rm -f $(addprefix $(PREFIX)/$(TARGET)/bin/, ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip)
|
2008-11-08 08:42:47 +00:00
|
|
|
endef
|
2013-08-27 18:24:06 +01:00
|
|
|
|
|
|
|
$(PKG)_BUILD_$(BUILD) :=
|