#
# 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
#
#
#
# Separate build for test with --enable-test configured
# Userland default optimization level is 4, but that causes test failures.
# Upstream recommends level 2, which allows the tests to run, so we use that.
# Berkeley DB uses TCLSH to run all the test suite test cases.
# Per the test suite instructions in the BDB build manual, the tclsh
# include path must be correct in include.tcl then tclsh is run by
# sourcing the test.tcl header and finally running the "run_std" command.
# COMPONENT_POST_TEST_ACTION does this.
(cd $(@D); \
cd $(@D); \
< include.tcl.orig > include.tcl; \
ulimit -n 65535; \
# adding to the C++ compiler because libtool appears to strip it from CXXFLAGS
# we need to enable large file support and build PIC for our shared libraries
CXXFLAGS += $(CPP_LARGEFILES)
# BerkeleyDB < 6 does not support Java 8. Java 7 is EOL & removed.
COMPONENT_TEST_TARGETS = test
# Do not apply the standard licence transforms for this component.
# By default "gmake test" runs standard tests, takes ~2 days per $(BITS).