Mercurial > mxe-octave
comparison src/build-gcc.mk @ 3718:992be3109433
new patch for stable-octave package
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 05 Oct 2014 11:12:39 -0400 |
parents | 1220a9158bc1 |
children | 9caae5336e92 |
comparison
equal
deleted
inserted
replaced
3717:70480095b6ed | 3718:992be3109433 |
---|---|
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.9.1 | 6 $(PKG)_VERSION := 4.8.2 |
7 $(PKG)_CHECKSUM := 3f303f403053f0ce79530dae832811ecef91197e | 7 $(PKG)_CHECKSUM := 810fb70bd721e1d9f446b6503afe0a9088b62986 |
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 | |
76 define $(PKG)_CONFIGURE | 83 define $(PKG)_CONFIGURE |
77 # configure gcc | 84 # configure gcc |
78 mkdir '$(1).build' | 85 mkdir '$(1).build' |
79 cd '$(1).build' && '$(1)/configure' \ | 86 cd '$(1).build' && '$(1)/configure' \ |
80 --prefix='$(BUILD_TOOLS_PREFIX)' \ | 87 --prefix='$(BUILD_TOOLS_PREFIX)' \ |
82 --disable-multilib \ | 89 --disable-multilib \ |
83 --disable-libsanitizer \ | 90 --disable-libsanitizer \ |
84 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \ | 91 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \ |
85 $(ENABLE_SHARED_OR_STATIC) \ | 92 $(ENABLE_SHARED_OR_STATIC) \ |
86 --disable-libgomp \ | 93 --disable-libgomp \ |
94 --disable-libmudflap \ | |
87 --with-cloog='$(BUILD_TOOLS_PREFIX)' \ | 95 --with-cloog='$(BUILD_TOOLS_PREFIX)' \ |
88 --with-gmp='$(BUILD_TOOLS_PREFIX)' \ | 96 --with-gmp='$(BUILD_TOOLS_PREFIX)' \ |
89 --with-isl='$(BUILD_TOOLS_PREFIX)' \ | 97 --with-isl='$(BUILD_TOOLS_PREFIX)' \ |
90 --with-mpc='$(BUILD_TOOLS_PREFIX)' \ | 98 --with-mpc='$(BUILD_TOOLS_PREFIX)' \ |
91 --with-mpfr='$(BUILD_TOOLS_PREFIX)' \ | 99 --with-mpfr='$(BUILD_TOOLS_PREFIX)' \ |