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