annotate src/native-gcc.mk @ 3556:22b42ac3fd68

native-gcc: remove unintended changes to native-gcc.mk from cs b1ca68ddd02c src/native-gcc.mk: remove changes of b1ca68ddd02c.
author John Donoghue <john.donoghue@ieee.org>
date Thu, 27 Feb 2014 06:36:03 -0500
parents b1ca68ddd02c
children 7fe77aaeb070
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := native-gcc
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
6 $(PKG)_VERSION := 4.8.2
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := 810fb70bd721e1d9f446b6503afe0a9088b62986
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := gcc-$($(PKG)_VERSION)
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := gcc-$($(PKG)_VERSION).tar.bz2
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/gcc/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE)
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_URL_2 := ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-$($(PKG)_VERSION)/$($(PKG)_FILE)
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
12
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
13 $(PKG)_DEPS := native-binutils cloog gmp isl mpc mpfr
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
14 ifeq ($(MXE_SYSTEM),mingw)
3523
1b350761007f allow native-gcc build to succeed
John W. Eaton <jwe@octave.org>
parents: 3511
diff changeset
15 $(PKG)_DEPS += mingw-w64
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
16 endif
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 ifneq ($(BUILD_SHARED),yes)
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 $(PKG)_STATIC_FLAG := --static
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 endif
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
21 ifeq ($(MXE_SYSTEM),mingw)
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
22 $(PKG)_SYSDEP_CONFIGURE_OPTIONS := \
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
23 --enable-version-specific-runtime-libs \
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
24 --disable-nls \
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
25 --without-x \
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
26 --disable-win32-registry \
3554
b1ca68ddd02c build native-gcc using untared dependancies within gcc source tree
John Donoghue <john.donoghue@ieee.org>
parents: 3523
diff changeset
27 --with-native-system-header-dir='$(HOST_PREFIX)/include' \
b1ca68ddd02c build native-gcc using untared dependancies within gcc source tree
John Donoghue <john.donoghue@ieee.org>
parents: 3523
diff changeset
28 --enable-threads=win32
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
29 ifneq ($(ENABLE_64),yes)
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
30 $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
31 --disable-sjlj-exceptions
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
32 endif
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
33 endif
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
34
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
35 define $(PKG)_UPDATE
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/gcc/?C=M;O=D' | \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 $(SED) -n 's,.*<a href="gcc-\([0-9][^"]*\)/".*,\1,p' | \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 grep -v '^4\.[543]\.' | \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 head -1
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40 endef
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
41
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
42 define $(PKG)_BUILD
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
43 # configure gcc
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 mkdir '$(1).build'
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 cd '$(1).build' && '$(1)/configure' \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 --target='$(TARGET)' \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
47 $(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
48 --prefix='$(HOST_PREFIX)' \
3016
c94807091658 native-gcc.mk: don't build objective C compiler
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
49 --enable-languages='c,c++,fortran' \
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
50 --disable-multilib \
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
51 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 $(ENABLE_SHARED_OR_STATIC) \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 --disable-libgomp \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 --disable-libmudflap \
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 $(shell [ `uname -s` == Darwin ] && echo "LDFLAGS='-Wl,-no_pie'")
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
3511
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
57 $(MAKE) -C '$(1).build' -j '$(JOBS)'
799dcef88a41 Install native binutils and gcc directly in host directory tree.
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
58 $(MAKE) -C '$(1).build' -j 1 install
2915
74304e21f1ab native gcc and binutils
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 endef