Makefile revision 3996
1923N/A#
1923N/A# CDDL HEADER START
1923N/A#
1923N/A# The contents of this file are subject to the terms of the
1923N/A# Common Development and Distribution License (the "License").
1923N/A# You may not use this file except in compliance with the License.
1923N/A#
1923N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1923N/A# or http://www.opensolaris.org/os/licensing.
1923N/A# See the License for the specific language governing permissions
1923N/A# and limitations under the License.
1923N/A#
1923N/A# When distributing Covered Code, include this CDDL HEADER in each
1923N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1923N/A# If applicable, add the following below this CDDL HEADER, with the
1923N/A# fields enclosed by brackets "[]" replaced with your own identifying
1923N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1923N/A#
1923N/A# CDDL HEADER END
1923N/A#
1923N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1923N/A#
3706N/Ainclude ../../make-rules/shared-macros.mk
1923N/A
1923N/ACOMPONENT_NAME= coreutils
1923N/ACOMPONENT_VERSION= 8.16
1923N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/coreutils/
1923N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3706N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
1923N/ACOMPONENT_ARCHIVE_HASH= \
1923N/A sha256:2a458fead15d9336f46bb4304cc3eaa6ed9407b9130e7ee2ec533909881d2067
1923N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/coreutils/$(COMPONENT_ARCHIVE)
1923N/ACOMPONENT_BUGDB= utility/gnu-coreutils
3706N/A
1923N/ATPNO= 8349
1923N/A
1923N/Ainclude $(WS_MAKE_RULES)/prep.mk
3706N/Ainclude $(WS_MAKE_RULES)/configure.mk
3661N/Ainclude $(WS_MAKE_RULES)/ips.mk
3996N/A
3996N/ACONFIGURE_PREFIX = /usr/gnu
3996N/ACONFIGURE_OPTIONS += --bindir=/usr/gnu/bin
1923N/ACONFIGURE_OPTIONS += --libdir=/usr/lib
1923N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
1923N/ACONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/gmp
1923N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1923N/A
1923N/A# Enable ASLR for this component
3706N/AASLR_MODE = $(ASLR_ENABLE)
3706N/A
3706N/A# common targets
3706N/Abuild: $(BUILD_32_and_64)
3706N/A
3706N/Ainstall: $(INSTALL_32_and_64)
3706N/A
3706N/A# Needed for "gmake test" to work successfully.
3706N/A# If SHELLOPTS is exported (as it is by the userland makefiles),
3706N/A# then all shell options get exported to child invocations of bash,
3706N/A# which results in test failures due to nounset and xtrace being
3706N/A# set unexpectedly, and errors such as "$1: unbound variable" and
3706N/A# diffs failing due to script tracing in output files.
3706N/Aunexport SHELLOPTS
3706N/A
3706N/A# Get the binaries to test from the component proto area.
1923N/ACOMPONENT_TEST_ENV += PATH=$(PROTOUSRSBINDIR):/usr/bin
1923N/A
1923N/A# There are two known test failures:
1923N/A# misc/stdbuf - see CR #15941179
1923N/A# misc/timeout-parameters - see CR #17425658
1923N/Atest: install $(TEST_64)
1923N/A
3706N/A
3706N/AREQUIRED_PACKAGES += library/gmp
3706N/AREQUIRED_PACKAGES += system/library
3706N/A