Makefile revision 5680
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt#
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# CDDL HEADER START
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater#
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# The contents of this file are subject to the terms of the
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# Common Development and Distribution License (the "License").
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# You may not use this file except in compliance with the License.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt#
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# or http://www.opensolaris.org/os/licensing.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# See the License for the specific language governing permissions
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater# and limitations under the License.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt#
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt#
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# CDDL HEADER END
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt#
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic Updater#
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt#
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntBUILD_BITS= 64
76786c2904942b708d8a7a4659df74da5dc9446eEvan Huntinclude ../../make-rules/shared-macros.mk
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_NAME= findutils
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_VERSION= 4.6.0
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_ARCHIVE_HASH= \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt sha256:ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_BUGDB= utility/gnu-findutils
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntTPNO= 27155
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan Huntinclude $(WS_MAKE_RULES)/gnu-component.mk
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCONFIGURE_PREFIX = $(USRGNUDIR)
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# Fixes coredump in the tests/test-localename test.
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCONFIGURE_OPTIONS += ac_cv_func_newlocale=no
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# Disable the leaf optimisation feature, because the st_nlinks directory
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# field is incorrect on ZFS file systems.
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCONFIGURE_OPTIONS += --disable-leaf-optimisation
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic UpdaterCOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntCOMPONENT_TEST_TRANSFORMS += \
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "s|^.*(core dumped).*$$|XXX_CC_XXX|g" ' \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "/^XXX_CC_XXX$$/d" ' \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "s|\(Test Run By\).*|\1|" ' \
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt '-e "s|\(Native configuration is\).*|\1|" '
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# Needed for "gmake test" to work successfully.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# Otherwise we see errors such as:
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# FAIL: exec-nogaps.old-O3, sh: SHELLOPTS: readonly variable
76786c2904942b708d8a7a4659df74da5dc9446eEvan Huntunexport SHELLOPTS
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt# test dependencies:
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntREQUIRED_PACKAGES += developer/versioning/cvs
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntREQUIRED_PACKAGES += developer/versioning/git
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt
76786c2904942b708d8a7a4659df74da5dc9446eEvan HuntREQUIRED_PACKAGES += system/library/math
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt