5180N/A#
5180N/A# CDDL HEADER START
5180N/A#
5180N/A# The contents of this file are subject to the terms of the
5180N/A# Common Development and Distribution License (the "License").
5180N/A# You may not use this file except in compliance with the License.
5180N/A#
5180N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5180N/A# or http://www.opensolaris.org/os/licensing.
5180N/A# See the License for the specific language governing permissions
5180N/A# and limitations under the License.
5180N/A#
5180N/A# When distributing Covered Code, include this CDDL HEADER in each
5180N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5180N/A# If applicable, add the following below this CDDL HEADER, with the
5180N/A# fields enclosed by brackets "[]" replaced with your own identifying
5180N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5180N/A#
5180N/A# CDDL HEADER END
5180N/A#
5680N/A
5680N/A#
5263N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5180N/A#
5680N/ABUILD_BITS= 64_and_32
5680N/ACOMPILER= gcc
5180N/Ainclude ../../make-rules/shared-macros.mk
5180N/A
5180N/ACOMPONENT_NAME= libffi
7178N/ACOMPONENT_VERSION= 3.2.1
5180N/ACOMPONENT_PROJECT_URL= http://sourceware.org/libffi/
5180N/ACOMPONENT_ARCHIVE_HASH= \
7178N/A sha256:d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
5180N/ACOMPONENT_ARCHIVE_URL= ftp://sources.redhat.com/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
5180N/ACOMPONENT_BUGDB= library/libffi
5180N/A
7178N/ATPNO= 21649
5180N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
5180N/A
5264N/ACOMPONENT_TEST_DIR = $(@D)/testsuite
5264N/A
7178N/A# The 32 test suite is trying various ABI (fastcall, thiscall, stdcall).
7178N/A# We don't support those on Solaris.
5264N/ACOMPONENT_TEST_TRANSFORMS += \
5264N/A '-e "s|^Test Run By.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "s|^Native configuration is.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
5264N/A '-e "/^XXX_REMOVE_XXX$$/d" '
5264N/A
5263N/ACFLAGS += -DFFI_MMAP_EXEC_WRIT=1
5263N/A
5680N/ACONFIGURE_OPTIONS += --disable-raw-api
5263N/A
5263N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime