Makefile revision 6453
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# The contents of this file are subject to the terms of the
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Common Development and Distribution License (the "License").
599a98b25ca10c501bdf3368eab2a2a951130949Mark Andrews# You may not use this file except in compliance with the License.
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
15a44745412679c30a6d022733925af70a38b715David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
e85ffb301b294d70ddc1d90234788403666bb944David Lawrence# CDDL HEADER END
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein# Built in SFW with gcc and builds cleanly now only with gcc
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# temporarily use GCC 4.8 until we resolve SPARC core dump issues with a newer
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.erlang.org/
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_SRC_NAME)_$(COMPONENT_VERSION)
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson sha256:3c28820c981b30c50df8ac2a4a238e5813454fa3ed2ad530bc7948a282846474
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence sha256:85b1b2a1011fc01af550f1fe9e5a599a4c5f2a35d264d2804af1d05590a857c3
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_1)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# HTML documentation
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark Andrews sha256:baba1d373c1faacf4a1a6ec1220d57d0cb2b977edb74f32cd58dc786361c6cf5
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark AndrewsCOMPONENT_ARCHIVE_URL_2= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_2)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Fix 64-bit linking.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# The HiPE portion is a bit sensitive, and only seems to work 64-bit on
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# amd64 (thus the variant.arch tagging in erlang.p5m). erts/config.log
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# can be very interesting if issues occur.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# to copy files and our tar doesn't handle long links by default. Between
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# need for /usr/bin/ld and /usr/gnu/bin/tar. This is still the case with
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# erlang version 17.5.
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# We need to re-run the nested configure script for the wx sub-component so
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# that it will properly detect wxWidgets support by adding -std=c++11 to $(CXX)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# (workaround for the configure script ignoring CXXFLAGS) and with ERL_TOP set
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# so that the wx component knows we're building inside the erlang source tree.
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# Always show the build and link lines for easier debugging.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_INSTALL_ARGS += INSTALL_PREFIX=$(PROTO_DIR)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Remove the two lines which contains the tester's username.
8959ca20706f210127d0af1df769fb945c92baeaMark Andrews '-e "s|/ldisk/tests|XXX_UID_XXX|g" ' \
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence '-e "/XXX_UID_XXX/d" '
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_SYSTEM_TEST_ENV += ERL_TOP=$(BUILD_DIR_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# remove INSTALL_PREFIX from path
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c++-runtime