Makefile revision 4337
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater#
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0519188c8e1ae76978fc4e0f799620cd36eba07aAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-macros.mk
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_NAME= findutils
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_VERSION= 4.5.14
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.gnu.org/software/findutils/
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_HASH= \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater sha256:0de3cf625a5c9f154eee3171e072515ffdde405244dd00502af617ac57b73ae2
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_ARCHIVE_URL= http://alpha.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_BUGDB= utility/gnu-findutils
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterTPNO= 19655
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Huntinclude $(WS_MAKE_RULES)/prep.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(WS_MAKE_RULES)/configure.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(WS_MAKE_RULES)/ips.mk
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_PREFIX = /usr/gnu
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Fixes coredump in the tests/test-localename test.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += ac_cv_func_newlocale=no
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Disable the leaf optimisation feature, because the st_nlinks directory
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# field is incorrect on ZFS file systems.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCONFIGURE_OPTIONS += --disable-leaf-optimisation
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_TEST_TRANSFORMS += \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater '-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews '-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews '-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews '-e "/^XXX_CC_XXX$$/d" ' \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington '-e "s|\(Test Run By\).*|\1|" ' \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater '-e "s|\(Native configuration is\).*|\1|" '
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic UpdaterASLR_MODE = $(ASLR_ENABLE)
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# common targets
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updaterconfigure: $(CONFIGURE_64)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updaterbuild: $(BUILD_64)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall: $(INSTALL_64)
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Needed for "gmake test" to work successfully.
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater# Otherwise we see errors such as:
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater# FAIL: exec-nogaps.old-O3, sh: SHELLOPTS: readonly variable
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsunexport SHELLOPTS
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssontest: $(TEST_64)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updatersystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonREQUIRED_PACKAGES += system/library
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterREQUIRED_PACKAGES += system/library/math
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater