components/libffi/Makefile
author Ann Lai <ann.lai@oracle.com>
Fri, 07 Apr 2017 17:54:54 -0700
changeset 7850 b1ddd00f19fd
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25839325 pkglint is very unhappy with the boot/shim packages now-duplicate files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     1
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     3
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     7
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    12
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    18
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@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: 5266
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5266
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7180
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@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: 5266
diff changeset
    25
BUILD_BITS= 64_and_32
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5266
diff changeset
    26
COMPILER= gcc
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    28
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		libffi
7180
bc5351dcb9ac 16939859 libffi header files should be installed in /usr/include not /usr/lib
Binjih Lin <binjih.lin@oracle.com>
parents: 6552
diff changeset
    30
COMPONENT_VERSION=	3.2.1
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://sourceware.org/libffi/
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH= \
7180
bc5351dcb9ac 16939859 libffi header files should be installed in /usr/include not /usr/lib
Binjih Lin <binjih.lin@oracle.com>
parents: 6552
diff changeset
    33
    sha256:d06ebb8e1d9a22d19e38d63fdb83954253f39bedc5d46232a05645685722ca37
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	ftp://sources.redhat.com/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    35
COMPONENT_BUGDB=	library/libffi
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7180
diff changeset
    36
COMPONENT_ANITYA_ID=	1611
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    37
7180
bc5351dcb9ac 16939859 libffi header files should be installed in /usr/include not /usr/lib
Binjih Lin <binjih.lin@oracle.com>
parents: 6552
diff changeset
    38
TPNO=		21649
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5266
diff changeset
    40
include $(WS_MAKE_RULES)/common.mk
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    41
5266
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    42
COMPONENT_TEST_DIR =	$(@D)/testsuite
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    43
7180
bc5351dcb9ac 16939859 libffi header files should be installed in /usr/include not /usr/lib
Binjih Lin <binjih.lin@oracle.com>
parents: 6552
diff changeset
    44
# The 32 test suite is trying various ABI (fastcall, thiscall, stdcall).
bc5351dcb9ac 16939859 libffi header files should be installed in /usr/include not /usr/lib
Binjih Lin <binjih.lin@oracle.com>
parents: 6552
diff changeset
    45
# We don't support those on Solaris.
5266
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    46
COMPONENT_TEST_TRANSFORMS += \
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    47
	'-e "s|^Test Run By.*$$|XXX_REMOVE_XXX|g" ' \
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    48
	'-e "s|^Native configuration is.*$$|XXX_REMOVE_XXX|g" ' \
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    49
	'-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    50
	'-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    51
	'-e "/^XXX_REMOVE_XXX$$/d" '
028461eee75e 22535289 libffi Makefile says NO_TESTS but it's wrong
Rich Burridge <rich.burridge@oracle.com>
parents: 5265
diff changeset
    52
5265
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    53
CFLAGS += -DFFI_MMAP_EXEC_WRIT=1
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    54
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5266
diff changeset
    55
CONFIGURE_OPTIONS += --disable-raw-api
5265
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    56
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    57
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime