author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
Tue, 18 Oct 2016 13:46:28 -0500 | |
changeset 7126 | c0715e78cafb |
parent 6943 | 88b49026f0cc |
child 7245 | 934578b959f0 |
permissions | -rw-r--r-- |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
21 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
22 |
# |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
23 |
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
25 |
export PARFAIT_BUILD=no |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
26 |
BUILD_BITS= 64 |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
27 |
COMPILER= gcc |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
28 |
include ../../make-rules/shared-macros.mk |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
29 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
30 |
COMPONENT_NAME= gcc |
6943
88b49026f0cc
23076921 GCC 5.4 upgrade for cilk-plus patches
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
6859
diff
changeset
|
31 |
COMPONENT_VERSION= 5.4.0 |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://gcc.gnu.org/ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
6943
88b49026f0cc
23076921 GCC 5.4 upgrade for cilk-plus patches
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
6859
diff
changeset
|
34 |
sha256:37089e80c3f2e9a0663d7ccc51c2a6c7dbbf3275bc1e4ed1ed3b1460cd5b3030 |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
36 |
COMPONENT_BUGDB= utility/gnu-compiler |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
37 |
|
6943
88b49026f0cc
23076921 GCC 5.4 upgrade for cilk-plus patches
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
6859
diff
changeset
|
38 |
TPNO= 29354 |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
39 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
40 |
# Use gcc's default flags instead of userland's. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
41 |
CFLAGS= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
42 |
CPPFLAGS= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
43 |
CXXFLAGS= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
44 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
45 |
include $(WS_MAKE_RULES)/common.mk |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
46 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
47 |
# The GNU compiler wants the GNU utilities. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
48 |
PATH=$(GNUBIN):$(USRBINDIR):$(USRDIR)/perl5/bin |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
49 |
|
7126
c0715e78cafb
24912627 gcc5 uses wrong triple on sparc
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
6943
diff
changeset
|
50 |
PARCH = $(MACH:i386=x86_64-pc) |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
51 |
GNU_ARCH = $(PARCH:sparc=sparcv9-sun)-solaris$(SOLARIS_VERSION) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
52 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
53 |
PKG_MACROS += GNU_ARCH="$(GNU_ARCH)" |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
54 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
55 |
VERSION_NUMBERS = $(subst ., ,$(COMPONENT_VERSION)) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
56 |
GCC_VERSION=$(word 1,$(VERSION_NUMBERS)).$(word 2,$(VERSION_NUMBERS)) |
6859
569bef81e3c4
22991497 /usr/gcc/5.3 should be /usr/gcc/5
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
5682
diff
changeset
|
57 |
GCC_MAJOR_VERSION=$(word 1,$(VERSION_NUMBERS)) |
569bef81e3c4
22991497 /usr/gcc/5.3 should be /usr/gcc/5
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
5682
diff
changeset
|
58 |
PKG_MACROS += GCC_MAJOR_VERSION=$(GCC_MAJOR_VERSION) |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
59 |
PKG_MACROS += GCC_VERSION=$(GCC_VERSION) |
6859
569bef81e3c4
22991497 /usr/gcc/5.3 should be /usr/gcc/5
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
5682
diff
changeset
|
60 |
PKG_MACROS += GCC_BASEDIR=$(CONFIGURE_PREFIX) |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
61 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
62 |
# direct binding causes various testsuite failures |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
63 |
LD_B_DIRECT= |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
64 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
65 |
# /usr/lib/ld/map.noexdata destroys Intel |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
66 |
LD_MAP_NOEXDATA.i386= |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
67 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
68 |
# /usr/lib/ld/map.noexbss destroys SPARC |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
69 |
LD_MAP_NOEXBSS.sparc= |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
70 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
71 |
# for some reason the fixincludes target fails with bash on Solaris. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
72 |
CONFIG_SHELL = /bin/sh |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
73 |
MAKESHELL = /bin/sh |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
74 |
COMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
75 |
COMPONENT_BUILD_ENV += MAKESHELL=$(MAKESHELL) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
76 |
|
6859
569bef81e3c4
22991497 /usr/gcc/5.3 should be /usr/gcc/5
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
5682
diff
changeset
|
77 |
CONFIGURE_PREFIX = /usr/gcc/$(GCC_MAJOR_VERSION) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
78 |
CONFIGURE_INFODIR = $(CONFIGURE_PREFIX)/share/info |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
79 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
80 |
# We are going to build the 64-bit version of the compiler and tools, but we |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
81 |
# want it to install in the normal .../{bin|lib}/... locations. GCC will |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
82 |
# take care of building and putting 32/64 bit objects in the right place |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
83 |
# under there. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
84 |
CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
85 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
86 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
87 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
88 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
89 |
CONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,objc" |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
90 |
CONFIGURE_OPTIONS += --enable-shared |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
91 |
CONFIGURE_OPTIONS += --enable-initfini-array |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
92 |
CONFIGURE_OPTIONS += --disable-rpath |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
93 |
CONFIGURE_OPTIONS += --with-system-zlib |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
94 |
CONFIGURE_OPTIONS += --with-build-config=no |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
95 |
CONFIGURE_OPTIONS += --with-gmp-include=$(USRINCDIR)/gmp |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
96 |
CONFIGURE_OPTIONS += --with-mpfr-include=$(USRINCDIR)/mpfr |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
97 |
CONFIGURE_OPTIONS += --without-gnu-ld --with-ld=$(USRBINDIR)/ld |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
98 |
CONFIGURE_OPTIONS += --with-gnu-as --with-as=$(GNUBIN)/as |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
99 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
100 |
# If the compiler used to build matches the compiler being built, there is no |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
101 |
# need for a 3 stage build. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
102 |
ifneq ($(shell $(CC) --version | grep $(COMPONENT_VERSION)),) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
103 |
CONFIGURE_OPTIONS += --disable-bootstrap |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
104 |
else |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
105 |
COMPONENT_BUILD_TARGETS=bootstrap |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
106 |
endif |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
107 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
108 |
CONFIGURE_OPTIONS += BOOT_CFLAGS='-g -O2' |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
109 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
110 |
# This is the target and it must be last |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
111 |
CONFIGURE_OPTIONS += $(GNU_ARCH) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
112 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
113 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
114 |
CONFIGURE_ENV += PYTHON="$(PYTHON)" |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
115 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
116 |
# compile python modules |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
117 |
COMPONENT_POST_INSTALL_ACTION = \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
118 |
( gfind $(PROTO_DIR)$(CONFIGURE_PREFIX) -name '*.py' | \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
119 |
xargs -n 1 dirname | sort -u | \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
120 |
xargs $(PYTHON) -m compileall ) |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
121 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
122 |
# To ensure that all tests that are expected to pass actually |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
123 |
# pass, we have to increase the stacksize limit to at least |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
124 |
# 16MB. Otherwise we'll get spurious failures in the test |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
125 |
# harness (gcc.c-torture/compile/limits-exprparen.c and others). |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
126 |
# With the soft stacksize limit set to 16384 we get reasonably good |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
127 |
# test results. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
128 |
COMPONENT_PRE_TEST_ACTION = ulimit -Ss 16384 |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
129 |
COMPONENT_TEST_ARGS = -k -i |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
130 |
COMPONENT_TEST_TARGETS = check check-target |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
131 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
132 |
COMPONENT_TEST_ENV += TCL_LIBRARY="$(USRLIBDIR)/tcl8.5" |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
133 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
134 |
# We don't have DejaGNU in S11. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
135 |
ifeq ($(OS_VERSION), 5.12) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5419
diff
changeset
|
136 |
COMPONENT_TEST_ENV += DEJAGNULIBS="$(USRSHAREDIR)/dejagnu" |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
137 |
endif |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
138 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
139 |
COMPONENT_TEST_TRANSFORMS += \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
140 |
'-e "s|\(Test Run By\).*|\1|" ' \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
141 |
'-e "/\(Missing header fix: \).*/d" ' \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
142 |
'-e "/\(\\*\\*\\* complex.h\).*/d" ' \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
143 |
'-e "/\(\\*\\*\\* math.h\).*/d" ' \ |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
144 |
'-e "/\(\\*\\*\\* stdio.h\).*/d" ' |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
145 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
146 |
# Master test results are different between x86 and SPARC. |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
147 |
COMPONENT_TEST_MASTER = \ |
6943
88b49026f0cc
23076921 GCC 5.4 upgrade for cilk-plus patches
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
6859
diff
changeset
|
148 |
$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH).master |
5342
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
149 |
|
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
150 |
REQUIRED_PACKAGES += developer/test/dejagnu |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
151 |
REQUIRED_PACKAGES += library/gmp |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
152 |
REQUIRED_PACKAGES += library/isl |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
153 |
REQUIRED_PACKAGES += library/mpc |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
154 |
REQUIRED_PACKAGES += library/mpfr |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
155 |
REQUIRED_PACKAGES += library/zlib |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
156 |
REQUIRED_PACKAGES += runtime/tcl-8 |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
157 |
REQUIRED_PACKAGES += shell/bash |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
158 |
REQUIRED_PACKAGES += shell/ksh93 |
e55d87e99ecd
PSARC/2015/499 GCC v5.3, v4.9.3, and more
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset
|
159 |
REQUIRED_PACKAGES += system/library/math |