Mercurial > mxe-octave
annotate src/native-binutils.mk @ 3763:be8906c52b6b
binutils: update to version 2.25
* src/build-binutils.mk: update version/checksum
* src/native-binutils.mk: update version/checksum
author | John Donoghue |
---|---|
date | Wed, 07 Jan 2015 07:51:16 -0500 |
parents | 214ad32cab26 |
children | d83f02205481 |
rev | line source |
---|---|
2915 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := native-binutils | |
5 $(PKG)_IGNORE := | |
3763 | 6 $(PKG)_VERSION := 2.25 |
7 $(PKG)_CHECKSUM := b46cc90ebaba7ffcf6c6d996d60738881b14e50d | |
2915 | 8 $(PKG)_SUBDIR := binutils-$($(PKG)_VERSION) |
9 $(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.bz2 | |
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE) | |
11 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE) | |
12 $(PKG)_DEPS := | |
13 | |
14 define $(PKG)_UPDATE | |
15 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ | |
16 $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
17 grep -v '^2\.1' | \ | |
18 head -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
22 # install config.guess for general use | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2916
diff
changeset
|
23 $(INSTALL) -d '$(TOP_DIR)/dist/usr/bin' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2916
diff
changeset
|
24 $(INSTALL) -m755 '$(1)/config.guess' '$(TOP_DIR)/dist/usr/bin/' |
2915 | 25 |
26 # install target-specific autotools config file | |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2916
diff
changeset
|
27 $(INSTALL) -d '$(TOP_DIR)/dist/usr/share' |
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2916
diff
changeset
|
28 echo "ac_cv_build=`$(1)/config.guess`" > '$(TOP_DIR)/dist/usr/share/config.site' |
2915 | 29 |
30 cd '$(1)' && ./configure \ | |
31 --target='$(TARGET)' \ | |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3511
799dcef88a41
Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
33 --prefix='$(HOST_PREFIX)' \ |
2915 | 34 --with-gcc \ |
35 --with-gnu-ld \ | |
36 --with-gnu-as \ | |
37 --disable-nls \ | |
38 $(ENABLE_SHARED_OR_STATIC) \ | |
39 --disable-werror | |
40 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
3511
799dcef88a41
Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
41 $(MAKE) -C '$(1)' -j 1 install |
2915 | 42 endef |