components/gcc48/Makefile
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Thu, 07 Apr 2016 23:00:22 -0700
changeset 5783 f6513c88489e
parent 5682 94c0ca64c022
permissions -rw-r--r--
23059370 gcc48 should specify the C standard to use when building
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     1
#
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     3
#
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     7
#
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    12
#
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    18
#
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.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: 5359
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    22
#
5348
623c86e1e386 22599369 gcc3, gcc48, and gcc49 should specify bits
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5144
diff changeset
    23
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    25
BUILD_BITS= 32
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    26
COMPILER= gcc
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    27
export PARFAIT_BUILD=no
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    28
include ../../make-rules/shared-macros.mk
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    29
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    30
COMPONENT_NAME=		gcc
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    31
COMPONENT_VERSION=	4.8.2
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL=	http://gcc.gnu.org/
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    34
    sha256:2ea77114344a06c45dd5791275311e91d306545aa5ec9db31d24174f6965e880
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    36
COMPONENT_BUGDB=        utility/gnu-compiler
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1727
diff changeset
    38
TPNO=			15448
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1727
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    40
include $(WS_MAKE_RULES)/gnu-component.mk
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    41
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    42
# 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: 5359
diff changeset
    43
PATH=$(GNUBIN):$(USRBINDIR):/usr/perl5/bin
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    44
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    45
PARCH =         $(MACH:i386=i386-pc)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    46
GNU_ARCH =      $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    47
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    48
PKG_MACROS +=   GNU_ARCH="$(GNU_ARCH)"
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    49
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    50
VERSION_NUMBERS = $(subst ., ,$(COMPONENT_VERSION))
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    51
GCC_VERSION=$(word 1,$(VERSION_NUMBERS)).$(word 2,$(VERSION_NUMBERS))
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    52
PKG_MACROS +=	GCC_VERSION=$(GCC_VERSION)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    53
PKG_MACROS +=	GCC_V=$(word 1,$(VERSION_NUMBERS))$(word 2,$(VERSION_NUMBERS))
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    54
PKG_MACROS +=	GCC_BASEDIR=usr/gcc/$(GCC_VERSION)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    55
5348
623c86e1e386 22599369 gcc3, gcc48, and gcc49 should specify bits
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5144
diff changeset
    56
# Make sure to pass -m32/64 any time the installed GCC is used
623c86e1e386 22599369 gcc3, gcc48, and gcc49 should specify bits
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5144
diff changeset
    57
CC += $(CC_BITS)
623c86e1e386 22599369 gcc3, gcc48, and gcc49 should specify bits
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5144
diff changeset
    58
CXX += $(CC_BITS)
623c86e1e386 22599369 gcc3, gcc48, and gcc49 should specify bits
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5144
diff changeset
    59
5783
f6513c88489e 23059370 gcc48 should specify the C standard to use when building
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5682
diff changeset
    60
# Specify the C Standard to use when building
f6513c88489e 23059370 gcc48 should specify the C standard to use when building
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5682
diff changeset
    61
CC += -std=gnu89
f6513c88489e 23059370 gcc48 should specify the C standard to use when building
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5682
diff changeset
    62
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    63
CFLAGS.i386 = -mtune=opteron -march=opteron
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    64
CFLAGS.sparc = -mtune=ultrasparc -mcpu=ultrasparc -mno-unaligned-doubles
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    65
CFLAGS = -g -O2 
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    66
CFLAGS += $(CFLAGS.$(MACH))
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    67
CXXFLAGS = -g -O2
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    68
CXXFLAGS += $(CFLAGS.$(MACH))
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    69
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    70
# direct binding causes various testsuite failures
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    71
LD_B_DIRECT=
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    72
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    73
# /usr/lib/ld/map.noexdata destroys Intel
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    74
LD_MAP_NOEXDATA.i386=
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    75
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    76
# /usr/lib/ld/map.noexbss  destroys SPARC
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    77
LD_MAP_NOEXBSS.sparc=
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    78
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    79
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    80
# for some reason the fixincludes target fails with bash on Solaris.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    81
CONFIG_SHELL = /bin/sh
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    82
MAKESHELL = /bin/sh
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    83
COMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    84
COMPONENT_BUILD_ENV += MAKESHELL=$(MAKESHELL)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    85
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    86
CONFIGURE_PREFIX =	/usr/gcc/4.8
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    87
CONFIGURE_INFODIR =	$(CONFIGURE_PREFIX)/share/info
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    88
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
    89
CONFIGURE_OPTIONS +=	--infodir=$(CONFIGURE_INFODIR)
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    90
CONFIGURE_OPTIONS +=	--libexecdir=$(CONFIGURE_PREFIX)/lib
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    91
CONFIGURE_OPTIONS +=	--enable-languages="c,c++,fortran,objc"
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    92
CONFIGURE_OPTIONS +=	--enable-shared
5144
2d220aefcb53 22219474 gcc 4.8 build with binutils 2.25.1 fails bootstrap comparsion on sparc
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 5066
diff changeset
    93
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: 5359
diff changeset
    94
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: 5359
diff changeset
    95
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: 5359
diff changeset
    96
CONFIGURE_OPTIONS +=	--without-gnu-ld --with-ld=$(LD)
5359
57359db17e2a 21459215 introduce ClooG in Solaris
Stefan Teleman <stefan.teleman@oracle.com>
parents: 5348
diff changeset
    97
CONFIGURE_OPTIONS +=   --with-isl=no
57359db17e2a 21459215 introduce ClooG in Solaris
Stefan Teleman <stefan.teleman@oracle.com>
parents: 5348
diff changeset
    98
CONFIGURE_OPTIONS +=   --with-cloog=no
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    99
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   100
CONFIGURE_ENV     += PYTHON="$(PYTHON)"
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   101
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   102
# sparc and x86 use different assemblers
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
   103
CONFIGURE_OPTIONS.sparc +=	--without-gnu-as --with-as=$(USRBINDIR)/as
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5359
diff changeset
   104
CONFIGURE_OPTIONS.i386 +=	--with-gnu-as --with-as=$(GNUBIN)/as
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   105
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   106
COMPONENT_BUILD_TARGETS=bootstrap
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   107
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   108
# compile python modules
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   109
COMPONENT_POST_INSTALL_ACTION = \
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   110
    ( gfind $(PROTOUSRDIR) -name '*.py' | xargs -n 1 dirname | sort -u | \
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   111
        xargs $(PYTHON) -m compileall )
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   112
# strip elves, strip ignores non-elf files
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   113
COMPONENT_POST_INSTALL_ACTION += ; \
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   114
    ( gfind $(PROTOUSRDIR) -type f -perm /0111 | xargs /usr/bin/strip -x \
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   115
        2>/dev/null ; exit 0 )
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   116
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   117
# ASLR has side-effects with libitm and libgomp.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   118
# Disable ASLR for now.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   119
ASLR_MODE=$(ASLR_DISABLE)
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   120
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   121
# To ensure that all tests that are expected to pass actually
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   122
# pass, we have to increase the stacksize limit to at least
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   123
# 16MB. Otherwise we'll get spurious failures in the test
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   124
# harness (gcc.c-torture/compile/limits-exprparen.c and others).
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   125
# With the soft stacksize limit set to 16384 we get reasonably good
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   126
# test results.
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   127
COMPONENT_PRE_TEST_ACTION = ulimit -Ss 16384
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   128
COMPONENT_TEST_ARGS = -k -i
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   129
COMPONENT_TEST_TARGETS = check check-target
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   130
5030
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   131
COMPONENT_TEST_TRANSFORMS += \
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   132
	'-e "s|\(Test Run By\).*|\1|" ' \
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   133
	'-e "/\(Missing header fix: \).*/d" ' \
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   134
	'-e "/\(\\*\\*\\* complex.h\).*/d" ' \
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   135
	'-e "/\(\\*\\*\\* math.h\).*/d" ' \
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   136
	'-e "/\(\\*\\*\\* stdio.h\).*/d" '
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   137
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   138
# Master test results are different between x86 and SPARC.
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   139
COMPONENT_TEST_MASTER = \
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   140
	$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH)-$(BITS).master
8a4221164865 20460325 GNU-COMPILER should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   141
1727
298fa60045ac 17436986 integrate GCC 4.8.x
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
   142
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   143
REQUIRED_PACKAGES += library/gmp
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   144
REQUIRED_PACKAGES += library/mpc
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   145
REQUIRED_PACKAGES += library/mpfr
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   146
REQUIRED_PACKAGES += shell/bash
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   147
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   148
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   149
REQUIRED_PACKAGES += system/library/math