components/libgsl/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 04 Aug 2016 10:41:57 -0700
changeset 6552 402379bc1b60
parent 5682 94c0ca64c022
child 6928 52fa7ed60803
permissions -rw-r--r--
24385703 Turn on ASLR by default, even for Userland "library" components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    22
#
5404
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    25
BUILD_BITS= 64_and_32
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		gsl
5250
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    29
COMPONENT_VERSION=	2.1
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
5250
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    31
    sha256:59ad06837397617f698975c494fe7b2b698739a59e2fcf830b776428938a0c66
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_BUGDB=	library/libgsl
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
5250
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    34
TPNO=			26006
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    36
TEST_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    37
SYSTEM_TEST_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    38
include $(WS_MAKE_RULES)/gnu-component.mk
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
5404
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    40
# NOTE:
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    41
# The libgsl package on Solaris is getting GSL CBLAS routines from
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    42
# libsunperf.so. Programs wishing to use this functionality should use the
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    43
# /usr/include/sunperf.h header file for the associated definitions and
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    44
# function prototypes and link against -lsunperf.
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    45
#
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    46
# To retain compatibility with libgsl on other platforms, and to require
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    47
# no changes to FOSS software being ported to Solaris, the libgsl package
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    48
# manifest will also include the /usr/include/gsl/gsl_cblas.h header file
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    49
# and provide links from /usr/lib/libgslcblas.so and
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    50
# /usr/lib/$(MACH64)/libgslcblas.so to their equivalent libsunperf.so
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    51
# library files.
55e409ba4e72 22665511 libgsl is missing some files
Rich Burridge <rich.burridge@oracle.com>
parents: 5250
diff changeset
    52
4158
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    53
# By default, tests in each GSL sub-directory are linked statically against
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    54
# a set of .la files. We don't deliver those in the GSL package, so we
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    55
# adjust all the tests to link against the dynamic GSL library instead.
5250
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    56
COMPONENT_POST_UNPACK_ACTION += \
4158
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    57
	(cd $(COMPONENT_SRC); \
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    58
	for f in `ls */Makefile.am` ; do \
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    59
	    $(GSED) -i -e \
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    60
		's|^test_LDADD.*$$|test_LDFLAGS = -L`pwd`/../.libs/ -R`pwd`/../.libs/\ntest_LDADD = -lgsl|' \
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    61
		$$f ; \
5250
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    62
	done) ;
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    63
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    64
# Remove ../../cblas/libgslcblas.la from LDADD definition in
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    65
# .../doc/examples/Makefile.am
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    66
COMPONENT_POST_UNPACK_ACTION += \
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    67
	$(GSED) -i -e 's|^LDADD.*$$|LDADD = ../../libgsl.la|' \
3b05aeef75e3 PSARC 2015/536 libgsl 2.1
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    68
		$(COMPONENT_SRC)/doc/examples/Makefile.am ;
4158
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    69
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
    70
# Recreate configure and top-level Makefile to pickup libsunperf changes.
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
COMPONENT_PREP_ACTION = \
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
	(cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -f)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
LDFLAGS += $(CC_BITS)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
LDFLAGS += $(studio_PIC)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
LDFLAGS += $(studio_OPT)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
LDFLAGS += $(LD_Z_TEXT)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
LDFLAGS += $(LD_Z_DEFS)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
LDFLAGS += $(LD_DEF_LIBS)
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    81
STUDIO_LIBS_PATH.32 =	$(USRLIBDIR)/studio
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5404
diff changeset
    82
STUDIO_LIBS_PATH.64 =	$(USRLIBDIR)/studio/64
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
LDFLAGS += -L$(STUDIO_LIBS_PATH.$(BITS)) -R$(STUDIO_LIBS_PATH.$(BITS)) \
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
		-lsunperf -lfsu -lmtsk -lpicl -lkstat
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    90
COMPONENT_TEST_ARGS =		-k -i
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    91
COMPONENT_SYSTEM_TEST_ARGS =	-k -i
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    93
# Master test results are different not only between 32-bit and 64-bit, but
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    94
# also between x86 and SPARC (different # of tests run).
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    95
COMPONENT_TEST_MASTER = \
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    96
	$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH)-$(BITS).master
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    97
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    98
COMPONENT_TEST_TRANSFORMS += \
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    99
	'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   100
	'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   101
	'-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   102
	'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   103
	'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   104
	'-e "s|^make.*: Nothing to be.*$$|XXX_CC_XXX|g" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   105
	'-e "s|^.*warning:.*$$|XXX_CC_XXX|g" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   106
	'-e "s|^.*s up to date.*$$|XXX_CC_XXX|g" ' \
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   107
	'-e "/^XXX_CC_XXX$$/d" '
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   108
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   109
# Get correct libgsl.so from the proto area.
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   110
TEST_LIBPATH.32 =	$(PROTOUSRLIBDIR)
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   111
TEST_LIBPATH.64 =	$(PROTOUSRLIBDIR64)
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   112
COMPONENT_TEST_ENV +=	LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   113
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   114
# Needed for "gmake test" to work successfully.
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   115
# If SHELLOPTS is exported (as it is by the userland makefiles),
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   116
# then all shell options get exported to child invocations of bash,
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   117
# which results in test failures due to nounset and xtrace being
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   118
# set unexpectedly, and errors such as "$1: unbound variable" and
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   119
# diffs failing due to script tracing in output files.
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   120
unexport SHELLOPTS
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   121
4158
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
   122
# There are known problems in libsunperf that are causing GSL test failures
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
   123
# in Solaris 12 with Studio 12.4 just on the x86 platform:
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
   124
# linalg: FAIL:   LQ_update m(5,3) [88]                             (32-bit)
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
   125
# caused by 20914954 cblas_gemm differences between x86 and sparcv7
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
   126
# linalg: FAIL:   cholesky_invert hilbert(4)                        (64-bit)
120144d5f6f3 20867067 "gmake test" failures for libgsl
Rich Burridge <rich.burridge@oracle.com>
parents: 4119
diff changeset
   127
# caused by 20909151 cblas_dsymm differences between amd64 and sparcv9.
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   128
test:		install $(TEST_32_and_64)
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   129
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
   130
system-test:    build $(SYSTEM_TEST_32_and_64)
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4158
diff changeset
   131
4119
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   132
REQUIRED_PACKAGES += shell/ksh93
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   133
REQUIRED_PACKAGES += system/library/math
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   134
REQUIRED_PACKAGES += system/library/openmp
bdf7d6775e82 PSARC 2015/122 GSL - GNU Scientific Library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   135
REQUIRED_PACKAGES += system/library/sunperf