Mercurial > mxe-octave
annotate src/native-binutils.mk @ 4327:8e9b2a147e2a
of-tsa: update to v4.4.5
* src/of-tsa.mk: update version, chcksum
* src/of-tsa-1-cross-fixes.patch: removed
* dist-files.mk: remove of-tsa-1-cross-fixes.patch
* build_packages.m: update tsa version
author | John D |
---|---|
date | Wed, 11 Jan 2017 16:12:35 -0500 |
parents | 16ce2dee4633 |
children | 4f00764eb5c2 |
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 := | |
3999 | 6 $(PKG)_VERSION := 2.25.1 |
7 $(PKG)_CHECKSUM := 1d597ae063e3947a5f61e23ceda8aebf78405fcd | |
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 | |
3944 | 14 $(PKG)_SYSDEP_OPTIONS := |
15 ifeq ($(ENABLE_WINDOWS_64),yes) | |
16 $(PKG)_SYSDEP_OPTIONS += \ | |
17 --enable-multilib \ | |
18 --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 | |
19 endif | |
20 | |
21 | |
2915 | 22 define $(PKG)_UPDATE |
23 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ | |
24 $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
25 grep -v '^2\.1' | \ | |
26 head -1 | |
27 endef | |
28 | |
29 define $(PKG)_BUILD | |
30 # 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
|
31 $(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
|
32 $(INSTALL) -m755 '$(1)/config.guess' '$(TOP_DIR)/dist/usr/bin/' |
2915 | 33 |
34 # 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
|
35 $(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
|
36 echo "ac_cv_build=`$(1)/config.guess`" > '$(TOP_DIR)/dist/usr/share/config.site' |
2915 | 37 |
38 cd '$(1)' && ./configure \ | |
39 --target='$(TARGET)' \ | |
3944 | 40 $($(PKG)_SYSDEP_OPTIONS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
41 $(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
|
42 --prefix='$(HOST_PREFIX)' \ |
2915 | 43 --with-gcc \ |
44 --with-gnu-ld \ | |
45 --with-gnu-as \ | |
46 --disable-nls \ | |
47 $(ENABLE_SHARED_OR_STATIC) \ | |
48 --disable-werror | |
49 $(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
|
50 $(MAKE) -C '$(1)' -j 1 install |
2915 | 51 endef |