author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 31 Mar 2016 12:22:20 -0700 | |
changeset 5692 | 2191b44f19f4 |
parent 5686 | 10b8edde211b |
child 5718 | 0ec11277a3e4 |
permissions | -rw-r--r-- |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
5338
8cb226fdeab6
21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents:
5125
diff
changeset
|
23 |
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
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:
5674
diff
changeset
|
25 |
BUILD_BITS= 64 |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= R |
5365
447b67338e7f
PSARC 2015/541 R 3.2.3
Rich Burridge <rich.burridge@oracle.com>
parents:
5338
diff
changeset
|
29 |
COMPONENT_VERSION= 3.2.3 |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://www.r-project.org/ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE_HASH= \ |
5365
447b67338e7f
PSARC 2015/541 R 3.2.3
Rich Burridge <rich.burridge@oracle.com>
parents:
5338
diff
changeset
|
32 |
sha256:b93b7d878138279234160f007cb9b7f81b8a72c012a15566e9ec5395cfd9b6c1 |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_URL= http://cran.mtu.edu/src/base/R-3/$(COMPONENT_ARCHIVE) |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_BUGDB= utility/r |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
|
5365
447b67338e7f
PSARC 2015/541 R 3.2.3
Rich Burridge <rich.burridge@oracle.com>
parents:
5338
diff
changeset
|
36 |
TPNO= 26540 |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
38 |
# Need to build the tests before using them. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
39 |
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
40 |
include $(WS_MAKE_RULES)/common.mk |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
# Get rid of compiler path set in RUNPATH |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
LDFLAGS += $(studio_NORUNPATH) |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
LDFLAGS += $(CC_BITS) |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
LDFLAGS += $(studio_PIC) |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
LDFLAGS += $(LD_DEF_LIBS) |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
53 |
STUDIO_LIBS_PATH = $(USRLIBDIR)/studio/64 |
5692
2191b44f19f4
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents:
5686
diff
changeset
|
54 |
# R_LIBS_PATH is used when creating /usr/lib/64/R/etc/Makeconf |
2191b44f19f4
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents:
5686
diff
changeset
|
55 |
# Using a resolved pathname here (rather than say $(USRLIBDIR64)/R/lib) so |
2191b44f19f4
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents:
5686
diff
changeset
|
56 |
# that the Makeconf-GNU.patch patch used by the COMPONENT_POST_INSTALL_ACTION |
2191b44f19f4
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents:
5686
diff
changeset
|
57 |
# will just work on both platforms. |
2191b44f19f4
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages (fix SPARC)
Rich Burridge <rich.burridge@oracle.com>
parents:
5686
diff
changeset
|
58 |
R_LIBS_PATH = /usr/lib/64/R/lib |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
JAVA_LIBS_PATH = $(JAVA8_HOME)/jre/lib/$(MACH64)/server |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
LDFLAGS += -L$(STUDIO_LIBS_PATH) -R$(STUDIO_LIBS_PATH) \ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
-lsunperf -lfsu -lmtsk -lpicl -lkstat |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
5489
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
64 |
# Augment the PATH and set CC/CXX/F95 such that the build environment doesn't |
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
65 |
# leak into usr/lib/64/etc/Makeconf and force consumers to have a setup like |
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
66 |
# our build environment to build R modules. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
67 |
export PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN) |
5489
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
68 |
CC = cc |
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
69 |
CXX = CC |
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
70 |
F95 = f95 |
5674
a5c5f8ac5f4b
23018794 userland should move to parfait 1.8
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5596
diff
changeset
|
71 |
ifeq ($(strip $(PARFAIT_BUILD)),yes) |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
72 |
export PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN) |
5674
a5c5f8ac5f4b
23018794 userland should move to parfait 1.8
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5596
diff
changeset
|
73 |
endif |
a5c5f8ac5f4b
23018794 userland should move to parfait 1.8
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
5596
diff
changeset
|
74 |
|
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
75 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
76 |
CONFIGURE_ENV += F77="$(F95) $(CC_BITS)" |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
77 |
CONFIGURE_ENV += FC="$(F95) $(CC_BITS)" |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
78 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
79 |
# For now, R is built with a very specific set of optimization flags to match |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
80 |
# Oracle-provided builds. These should be re-evaluated when upgrading to |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
81 |
# Studio 12.5 or later or when next upgrading R. |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
82 |
studio_OPT= -xO3 |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
83 |
studio_XBITS= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
84 |
studio_XREGS= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
85 |
studio_IROPTS= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
86 |
studio_C99MODE= $(studio_C99_ENABLE) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
87 |
studio_ALIGN= |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
88 |
studio_MT= |
5596
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
89 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
90 |
CFLAGS.studio += -xlibmieee |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
91 |
CXXFLAGS += -std=c++11 |
5596
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
92 |
# We (the Userland) team don't need -D__MATHERR_RENAME_EXCEPTION for the |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
93 |
# creation of the R packages we provide in Solaris. It would be needed by |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
94 |
# our customers that try to install R packages that use C++. And they would |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
95 |
# be using the version of the Studio compilers on their machine(s) to do this. |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
96 |
# Studio 12.5 will hopefully automatically provide this definition when C++ |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
97 |
# code is compiled with "-std=c++11". When that version of the Studio |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
98 |
# compilers is released, we should encourage customers to install it, but |
c3e2f9778be5
22911313 R needs -D__MATHERR_RENAME_EXCEPTION for R packages written in C++
Rich Burridge <rich.burridge@oracle.com>
parents:
5489
diff
changeset
|
99 |
# for those still using Studio 12.4, this definition will continue to be needed. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
100 |
CXXFLAGS += -D__MATHERR_RENAME_EXCEPTION |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
101 |
LDFLAGS += -L$(R_LIBS_PATH) -R$(R_LIBS_PATH) |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
102 |
|
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
103 |
CONFIGURE_ENV += CPICFLAGS="$(studio_PIC)" |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
104 |
CONFIGURE_ENV += FPICFLAGS="$(studio_PIC)" |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
105 |
CONFIGURE_ENV += FFLAGS="$(studio_OPT) $(CC_BITS)" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
106 |
CONFIGURE_ENV += FCFLAGS="$(studio_OPT) $(CC_BITS)" |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
107 |
CONFIGURE_ENV += FCLIBS="-lsunperf -lfsu -lsunmath" |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
108 |
CONFIGURE_ENV += FLIBS="-lsunperf -lfsu -lsunmath" |
5452
f31d1604634e
22712891 Studio 12.4 C++ compiler cannot compile C++ code in the R Rcpp package
Rich Burridge <rich.burridge@oracle.com>
parents:
5365
diff
changeset
|
109 |
# Needed so that R packages using C++ code can link against the standard |
f31d1604634e
22712891 Studio 12.4 C++ compiler cannot compile C++ code in the R Rcpp package
Rich Burridge <rich.burridge@oracle.com>
parents:
5365
diff
changeset
|
110 |
# C++ libraries. |
5489
a5031bb8b66d
22807071 The fix for 22712891 needs a little more work
Rich Burridge <rich.burridge@oracle.com>
parents:
5452
diff
changeset
|
111 |
CONFIGURE_ENV += SHLIB_CXXLDFLAGS="-lCrunG3" |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
112 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
113 |
# Set the various Java variables otherwise it auto-detects the 32-bit ones. |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
114 |
CONFIGURE_ENV += JAVA_CPPFLAGS="-I$(JAVA8_HOME)/jre/../include -I$(JAVA8_HOME)/jre/../include/solaris" |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
115 |
CONFIGURE_ENV += JAVA_LIBS="-L$(JAVA_LIBS_PATH) -R$(JAVA_LIBS_PATH) -ljvm" |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
116 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
117 |
# From Brian Whitney: |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
118 |
# You need to define this option on SPARC, otherwise you will get quad |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
119 |
# arithmetic on SPARC but not on x86. Really makes some R functions run |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
120 |
# very slow on SPARC (COR path). |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
121 |
CONFIGURE_OPTIONS.sparc += --disable-long-double |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
122 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
123 |
CONFIGURE_OPTIONS += --enable-R-shlib |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
124 |
CONFIGURE_OPTIONS += --with-blas='-lsunperf' |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
125 |
CONFIGURE_OPTIONS += --with-ICU |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
126 |
CONFIGURE_OPTIONS += --with-lapack |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
127 |
CONFIGURE_OPTIONS += --with-recommended-packages |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
128 |
CONFIGURE_OPTIONS += --with-tcltk |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
129 |
CONFIGURE_OPTIONS += --enable-prebuilt-html |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
130 |
|
5686
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
131 |
# Supply Makeconf files for both the Studio and the GNU C, C++ and Fortran |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
132 |
# compilers. |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
133 |
COMPONENT_POST_INSTALL_ACTION += \ |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
134 |
$(MV) $(PROTOUSRLIBDIR64)/R/etc/Makeconf \ |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
135 |
$(PROTOUSRLIBDIR64)/R/etc/Makeconf.Studio ; \ |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
136 |
$(CP) $(PROTOUSRLIBDIR64)/R/etc/Makeconf.Studio \ |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
137 |
$(PROTOUSRLIBDIR64)/R/etc/Makeconf.GNU ; \ |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
138 |
(cd $(PROTOUSRLIBDIR64)/R/etc ; $(GPATCH) --strip=0 \ |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
139 |
< $(COMPONENT_DIR)/files/Makeconf-GNU.patch) ; |
10b8edde211b
22976223 Adjust the R Makeconf file to better handle installation of CRAN R packages
Rich Burridge <rich.burridge@oracle.com>
parents:
5682
diff
changeset
|
140 |
|
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
141 |
COMPONENT_PRE_TEST_ACTION = \ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
142 |
$(RM) $(BUILD_DIR_64)/tests/Examples/*.prev |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
143 |
|
4899
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
144 |
COMPONENT_PRE_SYSTEM_TEST_ACTION = \ |
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
145 |
$(RM) $(BUILD_DIR_64)/tests/Examples/*.prev |
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
146 |
|
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
147 |
# Increase stack limit to allow the "infinite recursion" test to work. |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
148 |
COMPONENT_TEST_ENV_CMD = ulimit -Ss 32768 ; $(ENV) |
4899
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
149 |
COMPONENT_SYSTEM_TEST_ENV_CMD = ulimit -Ss 32768 ; $(ENV) |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
150 |
|
5338
8cb226fdeab6
21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents:
5125
diff
changeset
|
151 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
152 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
153 |
COMPONENT_TEST_TRANSFORMS += \ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
154 |
'-n ' \ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
155 |
'-e "/^Testing examples for package /p" ' \ |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
156 |
'-e "/^running /p" ' \ |
5338
8cb226fdeab6
21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents:
5125
diff
changeset
|
157 |
'-e "/^ expect some differences/p" ' \ |
8cb226fdeab6
21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents:
5125
diff
changeset
|
158 |
'-e "/comparing.*datetime.Rout/d" ' \ |
8cb226fdeab6
21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents:
5125
diff
changeset
|
159 |
'-e "/comparing.*reg-examples3.Rout/d" ' \ |
8cb226fdeab6
21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents:
5125
diff
changeset
|
160 |
'-e "/^ comparing /p" ' |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
161 |
|
4899
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
162 |
# Use the installed version of R, not the one in the build area. |
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
163 |
# These definitions override those found in .../test/Makefile. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
164 |
COMPONENT_SYSTEM_TEST_ARGS += R="LANGUAGE=en LC_ALL=C SRCDIR=$(BUILD_DIR_64)/tests R_DEFAULT_PACKAGES= $(USRBINDIR)/R --vanilla" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
165 |
COMPONENT_SYSTEM_TEST_ARGS += R2="R_DEFAULT_PACKAGES= $(USRBINDIR)/R --vanilla" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
166 |
COMPONENT_SYSTEM_TEST_ARGS += R3="$(USRBINDIR)/R CMD check" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
167 |
COMPONENT_SYSTEM_TEST_ARGS += RDIFF="$(USRBINDIR)/R CMD Rdiff" |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
5674
diff
changeset
|
168 |
COMPONENT_SYSTEM_TEST_ARGS += RDCONV="LC_CTYPE=C $(USRBINDIR)/R CMD Rdconv" |
4899
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
169 |
|
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
170 |
COMPONENT_TEST_ARGS = -k -i |
7dd77eb11d2a
21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents:
4898
diff
changeset
|
171 |
COMPONENT_SYSTEM_TEST_ARGS += -k -i |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
172 |
|
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
173 |
REQUIRED_PACKAGES += image/library/libjpeg |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
174 |
REQUIRED_PACKAGES += image/library/libpng |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
175 |
REQUIRED_PACKAGES += image/library/libtiff |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
176 |
REQUIRED_PACKAGES += library/desktop/cairo |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
177 |
REQUIRED_PACKAGES += library/desktop/pango |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
178 |
REQUIRED_PACKAGES += library/glib2 |
4898
a26d3de1812a
21892085 R needs two additional REQUIRED_PACKAGES plus a configure Makefile target
Rich Burridge <rich.burridge@oracle.com>
parents:
4792
diff
changeset
|
179 |
REQUIRED_PACKAGES += library/icu |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
180 |
REQUIRED_PACKAGES += library/pcre |
4741
5ab3f0c9276b
15802265 SUNBT7182198 include r programming language in solaris (fix REQUIRED_PACKAGES)
Rich Burridge <rich.burridge@oracle.com>
parents:
4739
diff
changeset
|
181 |
REQUIRED_PACKAGES += library/readline |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
182 |
REQUIRED_PACKAGES += library/zlib |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
183 |
REQUIRED_PACKAGES += shell/bash |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
184 |
REQUIRED_PACKAGES += system/library/fortran-runtime |
4900
75f0429dab65
21892085 R needs two additional REQUIRED_PACKAGES plus a configure Makefile target (adjust REQUIRED_PACKAGES)
Rich Burridge <rich.burridge@oracle.com>
parents:
4899
diff
changeset
|
185 |
REQUIRED_PACKAGES += system/library/iconv |
4739
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
186 |
REQUIRED_PACKAGES += system/library/math |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
187 |
REQUIRED_PACKAGES += system/library/sunperf |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
188 |
REQUIRED_PACKAGES += web/curl |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
189 |
REQUIRED_PACKAGES += x11/library/libx11 |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
190 |
REQUIRED_PACKAGES += x11/library/libxmu |
fe9f7b631d54
PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
191 |
REQUIRED_PACKAGES += x11/library/toolkit/libxt |