Makefile revision 5680
#
# 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
#
#
#
BUILD_BITS= 64
TPNO= 26540
# Need to build the tests before using them.
# Get rid of compiler path set in RUNPATH
LDFLAGS += $(studio_NORUNPATH)
LDFLAGS += $(studio_PIC)
LDFLAGS += $(LD_DEF_LIBS)
# our build environment to build R modules.
# For now, R is built with a very specific set of optimization flags to match
# Oracle-provided builds. These should be re-evaluated when upgrading to
# Studio 12.5 or later or when next upgrading R.
# We (the Userland) team don't need -D__MATHERR_RENAME_EXCEPTION for the
# creation of the R packages we provide in Solaris. It would be needed by
# our customers that try to install R packages that use C++. And they would
# be using the version of the Studio compilers on their machine(s) to do this.
# Studio 12.5 will hopefully automatically provide this definition when C++
# code is compiled with "-std=c++11". When that version of the Studio
# compilers is released, we should encourage customers to install it, but
# for those still using Studio 12.4, this definition will continue to be needed.
# Needed so that R packages using C++ code can link against the standard
# C++ libraries.
# Set the various Java variables otherwise it auto-detects the 32-bit ones.
CONFIGURE_ENV += JAVA_CPPFLAGS="-I$(JAVA8_HOME)/jre/../include -I$(JAVA8_HOME)/jre/../include/solaris"
# From Brian Whitney:
# You need to define this option on SPARC, otherwise you will get quad
# arithmetic on SPARC but not on x86. Really makes some R functions run
# very slow on SPARC (COR path).
CONFIGURE_OPTIONS.sparc += --disable-long-double
# Increase stack limit to allow the "infinite recursion" test to work.
'-n ' \
'-e "/^Testing examples for package /p" ' \
'-e "/^running /p" ' \
'-e "/^ expect some differences/p" ' \
'-e "/comparing.*datetime.Rout/d" ' \
'-e "/comparing.*reg-examples3.Rout/d" ' \
'-e "/^ comparing /p" '
# Use the installed version of R, not the one in the build area.
COMPONENT_SYSTEM_TEST_ARGS += R="LANGUAGE=en LC_ALL=C SRCDIR=$(BUILD_DIR_64)/tests R_DEFAULT_PACKAGES= $(USRBINDIR)/R --vanilla"
COMPONENT_TEST_ARGS = -k -i
COMPONENT_SYSTEM_TEST_ARGS += -k -i