Makefile revision 6011
#
# 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
#
#
#
# switching to parfait breaks a patch (23049278)
export PARFAIT_BUILD=no
BUILD_BITS= 64
TPNO= 26540
# 11.3, so do not publish.
# Need to build the tests before using them.
# that the Makeconf-GNU.patch patch used by the COMPONENT_POST_INSTALL_ACTION
# will just work on both platforms.
# our build environment to build R modules.
CXX = g++
# We can't use $(CC_PIC) here (which provides "-fPIC -DPIC" for the GNU
# compilers), because we fail at configure time with:
# configure: error: Building R requires the 'va_copy' system call
# .../make-rules/configure.mk:170: recipe for target
# '.../components/r/build/amd64/.configured' failed
# configuration file used when building/installing the R CRAN packages),
# is in exactly the correct format to work properly with the GNU compilers for
# all the R CRAN packages containing C, C++, Fortran or Java code.
CONFIGURE_ENV += CXX1XFLAGS="$(CC_BITS) -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2"
# 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