#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# Use gcc's default flags instead of userland's.
# The GNU compiler wants the GNU utilities.
# direct binding causes various testsuite failures
# /usr/lib/ld/map.noexdata destroys Intel
# /usr/lib/ld/map.noexbss destroys SPARC
# Mapfiles map.noexdata and map.noexbss mark the data + bss and bss
# segments non executable on x86 and SPARC respectively. The protection
# extends to the heap segment, if the heap is brk based, as is the case
# with gcc. Since the introduction of NXHEAP, this is controlled
# separately by the NXHEAP extension itself. Whether the heap should be
# executable or not should be reevaluated. For now, try to avoid
# "destruction" as hinted above.
# for some reason the fixincludes target fails with bash on Solaris.
# If the compiler used to build matches the compiler being built, there is no
# need for a 3 stage build.
else
# This is the target and it must be last
CONFIGURE_OPTIONS += $(GNU_ARCH)
# compile python modules
COMPONENT_BUILD_ARGS += $(JOBS:%=-j%)
# We don't have DejaGNU in S11.
#
# Run the tests and generate a summary report, then output the summary
# report into the results file.
#
# To ensure that all tests that are expected to pass actually
# pass, we have to increase the stacksize limit to at least
# 16MB. Otherwise we'll get spurious failures in the test
# harness (gcc.c-torture/compile/limits-exprparen.c and others).
# With the soft stacksize limit set to 16384 we get reasonably good
# test results.
#
ulimit -Ss 16384 ; \
# Master test results are different between x86 and SPARC.