components/libtool/Makefile
author Tomas Kuthan <tomas.kuthan@oracle.com>
Wed, 20 Apr 2016 13:13:57 -0700
changeset 5820 cef0da89f9ee
parent 5682 94c0ca64c022
child 6657 9988136f27c3
permissions -rw-r--r--
PSARC/2016/216 OpenSSH 7.2p2 upgrade. Host keys and moduli updates 23030875 network/ssh SMF method: generate correct host key types
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
127
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
#
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
#
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
#
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    21
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
127
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@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: 5066
diff changeset
    25
# libtool only delivers scripts that embed paths, so prefer 32-bit.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    26
BUILD_BITS= 32_and_64
127
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    28
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		libtool
708
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    30
COMPONENT_VERSION=	2.4.2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 725
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 725
diff changeset
    32
    sha256:b38de44862a987293cd3d8dfae1c409d514b6c4e794ebc93648febf9afc38918
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 854
diff changeset
    33
COMPONENT_BUGDB=	utility/libtool
127
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    34
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    35
TPNO=			9088
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    36
708
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    37
# For now, we want to continue to provide the libltdl.so's (and their
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    38
# links) from libtool 1.5.22.
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    39
#
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    40
COMPONENT_VERSION_1 =	1.5.22
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    41
COMPONENT_SRC_1 =	$(COMPONENT_NAME)-$(COMPONENT_VERSION_1)
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    42
COMPONENT_ARCHIVE_1 =	$(COMPONENT_SRC_1).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 725
diff changeset
    43
COMPONENT_ARCHIVE_HASH_1 = \
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 725
diff changeset
    44
    sha256:88e9ffaaade21c1ddaf6297723dd2fb4ca18ccaef0499a28b6e672f02c8ceb5d
708
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    45
COMPONENT_ARCHIVE_URL_1 = http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE_1)
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    46
SOURCE_DIR_1 =		$(COMPONENT_DIR)/$(COMPONENT_SRC_1)
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    47
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    48
BUILD_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    49
INSTALL_TARGET=
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    50
include $(WS_MAKE_RULES)/gnu-component.mk
127
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    51
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    52
CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    53
CONFIGURE_OPTIONS  +=		--disable-static
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    54
CONFIGURE_OPTIONS  +=		PERL="$(PERL)"
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    55
4088
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    56
# requires an older automake to reconfigure.
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    57
COMPONENT_PREP_ACTION = \
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    58
	(cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 ./bootstrap)
708
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    59
725
c3d04b0fa1ca 7101897 libtool contains some automount paths
Rich Burridge <rich.burridge@oracle.com>
parents: 708
diff changeset
    60
# Remove the hard-wired compiler locations in the LTCC and two CC lines
c3d04b0fa1ca 7101897 libtool contains some automount paths
Rich Burridge <rich.burridge@oracle.com>
parents: 708
diff changeset
    61
# in the two versions of the libtool script.
c3d04b0fa1ca 7101897 libtool contains some automount paths
Rich Burridge <rich.burridge@oracle.com>
parents: 708
diff changeset
    62
COMPONENT_POST_INSTALL_ACTION = \
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    63
	cd $(PROTO_DIR)$(USRBIN.$(BITS)); \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    64
	$(GSED) -i \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    65
		-e 's|^LTCC="/.*$$|LTCC="cc"|' \
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5066
diff changeset
    66
		-e 's|^CC="/.*$$|CC="cc"|' libtool ; \
725
c3d04b0fa1ca 7101897 libtool contains some automount paths
Rich Burridge <rich.burridge@oracle.com>
parents: 708
diff changeset
    67
708
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    68
# Macros to configure, build, and install the old version for the time being.
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    69
BUILD_OLD_DIR_32 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH32)
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    70
BUILD_OLD_DIR_64 = $(COMPONENT_DIR)/build/$(COMPONENT_VERSION_1)-$(MACH64)
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    71
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    72
$(BUILD_OLD_DIR_32)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    73
$(BUILD_OLD_DIR_64)/.configured: CONFIGURE_SCRIPT = $(SOURCE_DIR_1)/configure
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    74
$(BUILD_OLD_DIR_32)/.configured:	BITS=32
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    75
$(BUILD_OLD_DIR_64)/.configured:	BITS=64
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    76
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    77
BUILD_32 += $(BUILD_OLD_DIR_32)/.built
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    78
BUILD_64 += $(BUILD_OLD_DIR_64)/.built
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    79
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    80
INSTALL_32 += $(BUILD_OLD_DIR_32)/.installed
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    81
INSTALL_64 += $(BUILD_OLD_DIR_64)/.installed
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    82
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    83
# install the old version first
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    84
$(BUILD_DIR_32)/.installed:	$(BUILD_OLD_DIR_32)/.installed
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    85
$(BUILD_DIR_64)/.installed:	$(BUILD_OLD_DIR_64)/.installed
2cb7fdf18c3d PSARC 2012/053 libtool 2.4.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    86
5009
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    87
COMPONENT_TEST_TRANSFORMS += \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    88
	'-n ' \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    89
	'-e "/SKIP/p" ' \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    90
	'-e "/PASS/p" ' \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    91
	'-e "/FAIL/p" ' \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    92
	'-e "/^===/p" ' \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    93
	'-e "/failed/p" ' \
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    94
	'-e "/passed/p" '
b24aab703667 20460744 LIBTOOL should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    95
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    96
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    97
127
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    98
build:		$(BUILD_32_and_64)
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    99
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   100
install:	$(INSTALL_32_and_64)
3e3c266b3a81 7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   101
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   102
REQUIRED_PACKAGES += developer/base-developer-utilities
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   103
REQUIRED_PACKAGES += file/gnu-coreutils
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   104
REQUIRED_PACKAGES += shell/bash
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   105
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   106
REQUIRED_PACKAGES += text/gnu-grep
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   107
REQUIRED_PACKAGES += text/gnu-sed