components/libffi/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Wed, 13 Jan 2016 10:21:51 -0800
changeset 5265 444c51b844e7
parent 5182 78cc8a5782fa
child 5266 028461eee75e
permissions -rw-r--r--
22535919 Prompting for AI manifest failed - Memory fault - related to libffi
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
#
5265
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    21
# Copyright (c) 2015, 2016, 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
    22
#
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    23
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    24
COMPILER =	gcc
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    25
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    26
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
    27
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		libffi
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	3.0.9
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    30
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
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    34
    sha256:589d25152318bc780cd8919b14670793f4971d9838dab46ed38c32b3ee92c452
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    35
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
    36
COMPONENT_BUGDB=	library/libffi
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    37
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    38
TPNO=		5930
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    39
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    43
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    44
CC +=		$(CC_BITS)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    45
5265
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    46
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
    47
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    48
CONFIGURE_OPTIONS += --enable-raw-api=no
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    49
CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    50
5182
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    51
ASLR_MODE = $(ASLR_ENABLE)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    52
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    53
configure:	$(CONFIGURE_32_and_64)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    54
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    55
build:          $(BUILD_32_and_64)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    56
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    57
install:        $(INSTALL_32_and_64)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    58
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    59
test:           $(NO_TESTS)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    60
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    61
system-test:    $(NO_TESTS)
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    62
78cc8a5782fa 15820206 SUNBT7202646 Move libffi from Desktop consolidation to Userland
Bill Rushmore <bill.rushmore@oracle.com>
parents:
diff changeset
    63
REQUIRED_PACKAGES += system/library
5265
444c51b844e7 22535919 Prompting for AI manifest failed - Memory fault - related to libffi
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 5182
diff changeset
    64
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime