comparison src/build-gcc.mk @ 3719:9caae5336e92

Undo botched commit. Backed out changeset 992be3109433
author John W. Eaton <jwe@octave.org>
date Sun, 05 Oct 2014 11:15:06 -0400
parents 992be3109433
children eba1c6e9cbb8
comparison
equal deleted inserted replaced
3718:992be3109433 3719:9caae5336e92
1 # This file is part of MXE. 1 # This file is part of MXE.
2 # See index.html for further information. 2 # See index.html for further information.
3 3
4 PKG := build-gcc 4 PKG := build-gcc
5 $(PKG)_IGNORE := 5 $(PKG)_IGNORE :=
6 $(PKG)_VERSION := 4.8.2 6 $(PKG)_VERSION := 4.9.1
7 $(PKG)_CHECKSUM := 810fb70bd721e1d9f446b6503afe0a9088b62986 7 $(PKG)_CHECKSUM := 3f303f403053f0ce79530dae832811ecef91197e
8 $(PKG)_SUBDIR := gcc-$($(PKG)_VERSION) 8 $(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
9 $(PKG)_FILE := gcc-$($(PKG)_VERSION).tar.bz2 9 $(PKG)_FILE := gcc-$($(PKG)_VERSION).tar.bz2
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE) 10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE)
11 $(PKG)_URL_2 := ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE) 11 $(PKG)_URL_2 := ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE)
12 12
71 $(SED) -n 's,.*<a href="gcc-\([0-9][^"]*\)/".*,\1,p' | \ 71 $(SED) -n 's,.*<a href="gcc-\([0-9][^"]*\)/".*,\1,p' | \
72 grep -v '^4\.[543]\.' | \ 72 grep -v '^4\.[543]\.' | \
73 head -1 73 head -1
74 endef 74 endef
75 75
76 ifneq ($(MXE_NATIVE_BUILD),yes)
77 define $(PKG)_POST_BUILD
78 $(INSTALL) -d '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)'
79 mv $(addprefix $(HOST_PREFIX)/bin/, c++ g++ gcc gfortran) '$(BUILD_TOOLS_PREFIX)/bin/$(TARGET)'
80 endef
81 endif
82
83 define $(PKG)_CONFIGURE 76 define $(PKG)_CONFIGURE
84 # configure gcc 77 # configure gcc
85 mkdir '$(1).build' 78 mkdir '$(1).build'
86 cd '$(1).build' && '$(1)/configure' \ 79 cd '$(1).build' && '$(1)/configure' \
87 --prefix='$(BUILD_TOOLS_PREFIX)' \ 80 --prefix='$(BUILD_TOOLS_PREFIX)' \
89 --disable-multilib \ 82 --disable-multilib \
90 --disable-libsanitizer \ 83 --disable-libsanitizer \
91 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \ 84 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \
92 $(ENABLE_SHARED_OR_STATIC) \ 85 $(ENABLE_SHARED_OR_STATIC) \
93 --disable-libgomp \ 86 --disable-libgomp \
94 --disable-libmudflap \
95 --with-cloog='$(BUILD_TOOLS_PREFIX)' \ 87 --with-cloog='$(BUILD_TOOLS_PREFIX)' \
96 --with-gmp='$(BUILD_TOOLS_PREFIX)' \ 88 --with-gmp='$(BUILD_TOOLS_PREFIX)' \
97 --with-isl='$(BUILD_TOOLS_PREFIX)' \ 89 --with-isl='$(BUILD_TOOLS_PREFIX)' \
98 --with-mpc='$(BUILD_TOOLS_PREFIX)' \ 90 --with-mpc='$(BUILD_TOOLS_PREFIX)' \
99 --with-mpfr='$(BUILD_TOOLS_PREFIX)' \ 91 --with-mpfr='$(BUILD_TOOLS_PREFIX)' \