Mercurial > mxe-octave
annotate src/native-binutils.mk @ 4626:b864dc772f15
gcc: remove multilib references
* src/build-binutils.mk: remove win64 multilib options
* src/build-gcc.mk: refactor cross build configure options where common
* src/native-binutils.mk: remove win64 enable multilib
* src/native-gcc.mk: refect options where common for cross build
author | John Donoghue |
---|---|
date | Mon, 12 Mar 2018 17:15:46 -0400 |
parents | 4f00764eb5c2 |
children | 5da1d6de7f6f |
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 := | |
4495
4f00764eb5c2
build-binutils, native-binutils: Update to version 2.29.1.
John W. Eaton <jwe@octave.org>
parents:
3999
diff
changeset
|
6 $(PKG)_VERSION := 2.29.1 |
4f00764eb5c2
build-binutils, native-binutils: Update to version 2.29.1.
John W. Eaton <jwe@octave.org>
parents:
3999
diff
changeset
|
7 $(PKG)_CHECKSUM := 172244a349d07ec205c39c0321cbc354c125e78e |
2915 | 8 $(PKG)_SUBDIR := binutils-$($(PKG)_VERSION) |
4495
4f00764eb5c2
build-binutils, native-binutils: Update to version 2.29.1.
John W. Eaton <jwe@octave.org>
parents:
3999
diff
changeset
|
9 $(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.xz |
2915 | 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 | |
2915 | 16 define $(PKG)_UPDATE |
17 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ | |
18 $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \ | |
19 grep -v '^2\.1' | \ | |
20 head -1 | |
21 endef | |
22 | |
23 define $(PKG)_BUILD | |
24 # 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
|
25 $(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
|
26 $(INSTALL) -m755 '$(1)/config.guess' '$(TOP_DIR)/dist/usr/bin/' |
2915 | 27 |
28 # 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
|
29 $(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
|
30 echo "ac_cv_build=`$(1)/config.guess`" > '$(TOP_DIR)/dist/usr/share/config.site' |
2915 | 31 |
32 cd '$(1)' && ./configure \ | |
33 --target='$(TARGET)' \ | |
3944 | 34 $($(PKG)_SYSDEP_OPTIONS) \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
35 $(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
|
36 --prefix='$(HOST_PREFIX)' \ |
2915 | 37 --with-gcc \ |
38 --with-gnu-ld \ | |
39 --with-gnu-as \ | |
40 --disable-nls \ | |
41 $(ENABLE_SHARED_OR_STATIC) \ | |
42 --disable-werror | |
43 $(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
|
44 $(MAKE) -C '$(1)' -j 1 install |
2915 | 45 endef |