Makefile revision 2985
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# CDDL HEADER START
396aeca634b86a3ab34d5bdb9c32cbce73c72421jerenkrantz# The contents of this file are subject to the terms of the
1f78f6d87f69c241a3e903a46bae4666d17a8513trawick# Common Development and Distribution License (the "License").
1f78f6d87f69c241a3e903a46bae4666d17a8513trawick# You may not use this file except in compliance with the License.
1f78f6d87f69c241a3e903a46bae4666d17a8513trawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# See the License for the specific language governing permissions
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# and limitations under the License.
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantz# When distributing Covered Code, include this CDDL HEADER in each
3ded62d7f2c9b12616d718b8c97d3044baa9ecdbjerenkrantz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a8f3bcf803321e69b226d3b98314305a68a586cjerenkrantz# If applicable, add the following below this CDDL HEADER, with the
5a8f3bcf803321e69b226d3b98314305a68a586cjerenkrantz# fields enclosed by brackets "[]" replaced with your own identifying
5a8f3bcf803321e69b226d3b98314305a68a586cjerenkrantz# information: Portions Copyright [yyyy] [name of copyright owner]
031acbd88cdb9051f474a38ef67ca403cb7039b3nd# CDDL HEADER END
ebf6c41faad84ab037fff4f04ec987463457ef2acoar# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
b9e99e0d3154bbebe3e1b8d11d6c15bde79510a5ndCOMPONENT_SRC= $(COMPONENT_NAME)-$(SRC_VERSION)p$(SRC_PATCH_VERSION)
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantz sha256:bc9d5c96de5f8b4d2b014f87a37870aef60d2891c869202454069150a21a5c21
ea5f8cfbb7ef1d19318f6994c26dd73c38ffd8ddjerenkrantzCOMPONENT_ARCHIVE_URL= http://www.sudo.ws/sudo/dist/$(COMPONENT_ARCHIVE)
4cdc5446050c19b9d519a273a129188586e8d445jerenkrantzCOMPONENT_PREP_ACTION = ( cd $(@D) ; $(AUTORECONF) -f -I m4 )
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregamesCONFIGURE_OPTIONS += --with-timedir=/system/volatile/sudo
47fe07199bddec6124ab7251c6be5c6c9ac00485jerenkrantzCONFIGURE_OPTIONS += "sudo_cv_var_nroff_opt_Tascii=no"
ad451e2e428a069086d1c18c9e3372f8846ec617wrowe# Enable aslr for this component
74b84dd6e146edc93cf1b3200e411bfc581f7c36nd# common targets
74b84dd6e146edc93cf1b3200e411bfc581f7c36nd# 64 build corrupts audit logs because of 17561594. Until that is fixed do 32bit build.
367cefc17f8dcfe65651c9c16cb3151589c6cecetrawick # Since linking with libmd.so (which provides sha2 capability on
2774f23eee36fdb1b30a8213bbcabe5336175e54jwoolley # Solaris) is optional, we have a check here to make sure that the
2774f23eee36fdb1b30a8213bbcabe5336175e54jwoolley # configure script found it correctly.
1944ddbbad413b60307d66081b022a3eee5f04cfbnicholes # Make sure that sudo is NOT built with it's internal sha2 implementation
1944ddbbad413b60307d66081b022a3eee5f04cfbnicholes if [[ -n $$( elfdump -s "$(VISUDO)" | grep SHA256Init | grep -v UNDEF ) ]]; then \
1944ddbbad413b60307d66081b022a3eee5f04cfbnicholes echo "SHA256Init is not an undefined symbol in $(VISUDO)"; \
3b1dc8f8f153d7167da9e64ab44f3e90f486a458wrowe # ... but is linked with libmd instead