Makefile revision 3996
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# CDDL HEADER START
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# The contents of this file are subject to the terms of the
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# Common Development and Distribution License (the "License").
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# You may not use this file except in compliance with the License.
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# See the License for the specific language governing permissions
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# and limitations under the License.
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# When distributing Covered Code, include this CDDL HEADER in each
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# If applicable, add the following below this CDDL HEADER, with the
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# fields enclosed by brackets "[]" replaced with your own identifying
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# information: Portions Copyright [yyyy] [name of copyright owner]
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# CDDL HEADER END
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi EgloffCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff sha256:07b880faf29f3f9d9c0953717002ac29f5d061427797d2487a7c9c169e6395b3
9f52434d289d33b46a300c53f7fc1694fbb39379Andi EgloffCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gcc/$(COMPONENT_SRC)/$(COMPONENT_ARCHIVE)
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi EgloffCOMPONENT_ARCHIVE_1= testsuite-$(COMPONENT_VERSION).tar.gz
9f52434d289d33b46a300c53f7fc1694fbb39379Andi Egloff http://ftp.gnu.org/pub/gnu/gcc/$(COMPONENT_SRC)/gcc-$(COMPONENT_ARCHIVE_1)
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff sha256:aeb50a52831048da9a6aed118d85a25fc33fa73cae6c80df8f84885712e1b357
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi EgloffGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
1d771da1e403bc4ac624aa6acf47416cb89c0f56Chad Kienle# This product bootstraps itself. The gcc flags are not the same
1d771da1e403bc4ac624aa6acf47416cb89c0f56Chad Kienle# as Studio flags. -O2 means different things for the two compilers
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# CC_BITS may get in the way
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info
1d771da1e403bc4ac624aa6acf47416cb89c0f56Chad KienleCONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_OPTIONS += --enable-languages="c,c++,fortran,objc"
1d771da1e403bc4ac624aa6acf47416cb89c0f56Chad KienleCONFIGURE_OPTIONS += --with-gmp-include=/usr/include/gmp
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_OPTIONS += --with-mpfr-include=/usr/include/mpfr
376d1bf8f8ca562eecccbf0a0d34aa7c7352e152Laszlo HordosCONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld
fe644a7302b3235c08aec5fd7992a329f2ee1364Laszlo Hordos tar xvf testsuite-$(COMPONENT_VERSION).tar.gz > /dev/null 2>&1 )
f5908f0beda7b53325a52e5ea2266000bce2fe41Andi Egloff# sparc and x86 use different assemblers
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/bin/as
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# Keep ASLR disabled (the default) for gcc 4.5; build often core dumps with ASLR
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# To ensure that all tests that are expected to pass actually
1d771da1e403bc4ac624aa6acf47416cb89c0f56Chad Kienle# pass, we have to increase the stacksize limit to at least
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# 16384 Kb. Otherwise we'll get spurious failures in the test
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# harness (gcc.c-torture/compile/limits-exprparen.c and others).
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# With the soft stacksize limit set to 16384 we get very good
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad Kienle# test results.
1d771da1e403bc4ac624aa6acf47416cb89c0f56Chad Kienle ulimit -Ss 16384 ; \
bdcef189d83ab13d06dde11499a03b16cdb5b432Chad KienleREQUIRED_PACKAGES += system/library/gcc-45-runtime