comparison src/native-binutils.mk @ 3944:d83f02205481

native-gcc: compile as multilib in win64 * src/native-binutils.mk: in win64 mode, enable multilib and targets=targets=x86_64-w64-mingw32,i686-w64-mingw32 * src/native-gcc.mk: in win64, enable mutilib, copy lib32 file to correct splot
author John Donoghue
date Wed, 20 May 2015 07:36:47 -0400
parents be8906c52b6b
children 16ce2dee4633
comparison
equal deleted inserted replaced
3943:cbefb206115e 3944:d83f02205481
8 $(PKG)_SUBDIR := binutils-$($(PKG)_VERSION) 8 $(PKG)_SUBDIR := binutils-$($(PKG)_VERSION)
9 $(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.bz2 9 $(PKG)_FILE := binutils-$($(PKG)_VERSION).tar.bz2
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE) 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) 11 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE)
12 $(PKG)_DEPS := 12 $(PKG)_DEPS :=
13
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
13 21
14 define $(PKG)_UPDATE 22 define $(PKG)_UPDATE
15 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \ 23 $(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' | \ 24 $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \
17 grep -v '^2\.1' | \ 25 grep -v '^2\.1' | \
27 $(INSTALL) -d '$(TOP_DIR)/dist/usr/share' 35 $(INSTALL) -d '$(TOP_DIR)/dist/usr/share'
28 echo "ac_cv_build=`$(1)/config.guess`" > '$(TOP_DIR)/dist/usr/share/config.site' 36 echo "ac_cv_build=`$(1)/config.guess`" > '$(TOP_DIR)/dist/usr/share/config.site'
29 37
30 cd '$(1)' && ./configure \ 38 cd '$(1)' && ./configure \
31 --target='$(TARGET)' \ 39 --target='$(TARGET)' \
40 $($(PKG)_SYSDEP_OPTIONS) \
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 41 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
33 --prefix='$(HOST_PREFIX)' \ 42 --prefix='$(HOST_PREFIX)' \
34 --with-gcc \ 43 --with-gcc \
35 --with-gnu-ld \ 44 --with-gnu-ld \
36 --with-gnu-as \ 45 --with-gnu-as \