author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Mon, 21 Oct 2013 16:44:30 -0700 | |
branch | s11-update |
changeset 2797 | 1456c0bc0212 |
parent 2720 | ce63a14b34c3 |
child 2806 | 8ac3cbf66125 |
permissions | -rw-r--r-- |
2720
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
1 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
3 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
7 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
12 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
18 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
20 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
21 |
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
22 |
# |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
23 |
include ../../make-rules/shared-macros.mk |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
24 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
25 |
COMPONENT_NAME= gcc |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
26 |
COMPONENT_VERSION= 4.7.3 |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
27 |
COMPONENT_PROJECT_URL= http://gcc.gnu.org/ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
31 |
sha256:34a273937eb63ee710784b65bcf9fb3cfcd79d02848f80c75f8254abd14c79c8 |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_BUGDB= utility/gnu-compiler |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
34 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
35 |
include ../../make-rules/prep.mk |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
36 |
include ../../make-rules/configure.mk |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
37 |
include ../../make-rules/ips.mk |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
38 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
39 |
# The GNU compiler wants the GNU utilities. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
40 |
PATH=/usr/gnu/bin:/usr/bin:/usr/perl5/bin |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
41 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
42 |
PARCH = $(MACH:i386=i386-pc) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
43 |
GNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
44 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
45 |
PKG_MACROS += GNU_ARCH="$(GNU_ARCH)" |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
46 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
47 |
# This product bootstraps itself. The gcc flags are not the same |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
48 |
# as Studio flags. -O2 means different things for the two compilers |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
49 |
CFLAGS=-g -O2 |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
50 |
CFLAGS_FOR_BUILD=$(CFLAGS) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
51 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
52 |
# CC_BITS may get in the way |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
53 |
CC_BITS= |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
54 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
55 |
# LD_OPTIONS |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
56 |
# /usr/lib/ld/map.noexbss destroys SPARC |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
57 |
# /usr/lib/ld/map.noexdata destroys Intel |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
58 |
GCC_LD_OPTIONS.sparc=-M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.pagealign -z ignore |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
59 |
GCC_LD_OPTIONS.i386=-M /usr/lib/ld/map.noexstk -M /usr/lib/ld/map.pagealign -z ignore |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
60 |
GCC_LD_OPTIONS = $(GCC_LD_OPTIONS.$(MACH)) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
61 |
LD_OPTIONS := $(GCC_LD_OPTIONS) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
62 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
63 |
CONFIG_SHELL = /bin/sh |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
64 |
MAKESHELL = /bin/sh |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
65 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
66 |
CONFIGURE_PREFIX = /usr/gcc/4.7 |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
67 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
68 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
69 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
70 |
CONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,objc" |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
71 |
CONFIGURE_OPTIONS += --enable-shared |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
72 |
CONFIGURE_OPTIONS += --with-gmp-include=/usr/include/gmp |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
73 |
CONFIGURE_OPTIONS += --with-mpfr-include=/usr/include/mpfr |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
74 |
CONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
75 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
76 |
CONFIGURE_ENV += PYTHON="$(PYTHON)" |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
77 |
CONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)" |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
78 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
79 |
# sparc and x86 use different assemblers |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
80 |
CONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/bin/as |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
81 |
CONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
82 |
CONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH)) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
83 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
84 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
85 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
86 |
COMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
87 |
COMPONENT_BUILD_ENV += MAKESHELL=$(MAKESHELL) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
88 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
89 |
COMPONENT_BUILD_TARGETS=bootstrap |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
90 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
91 |
COMPONENT_POST_INSTALL_ACTION = \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
92 |
( cd $(PROTOUSRDIR)/gcc/4.7/lib ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
93 |
$(PYTHON) -m compileall . ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
94 |
cd $(PROTOUSRDIR)/gcc/4.7/lib/$(MACH64) ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
95 |
$(PYTHON) -m compileall . ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
96 |
cd $(PROTOUSRDIR)/gcc/4.7/share/gcc-4.7.3/python/libstdcxx ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
97 |
$(PYTHON) -m compileall . ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
98 |
cd $(PROTOUSRDIR)/gcc/4.7/share/gcc-4.7.3/python/libstdcxx/v6 ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
99 |
$(PYTHON) -m compileall . ) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
100 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
101 |
# ASLR has side-effects with libitm and libgomp. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
102 |
# Disable ASLR for now. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
103 |
ASLR_MODE=$(ASLR_DISABLE) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
104 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
105 |
build: $(BUILD_32) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
106 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
107 |
install: $(INSTALL_32) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
108 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
109 |
# To ensure that all tests that are expected to pass actually |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
110 |
# pass, we have to increase the stacksize limit to at least |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
111 |
# 16384 Kb. Otherwise we'll get spurious failures in the test |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
112 |
# harness (gcc.c-torture/compile/limits-exprparen.c and others). |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
113 |
# With the soft stacksize limit set to 16384 we get very good |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
114 |
# test results. |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
115 |
test: |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
116 |
( cd $(BUILD_DIR_32)/gcc ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
117 |
ulimit -Ss 16384 ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
118 |
env - LD_OPTIONS=$(LD_OPTIONS) $(GMAKE) -k -i check ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
119 |
cd $(BUILD_DIR_32) ; \ |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
120 |
env - LD_OPTIONS=$(LD_OPTIONS) $(GMAKE) -k -i check-target ) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
121 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
122 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
123 |
|
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
124 |
include ../../make-rules/depend.mk |
ce63a14b34c3
15823988 SUNBT7205673-12.0 Upgrade GCC to >= 4.7.2
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
125 |