Makefile revision 3661
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# information: Portions Copyright [yyyy] [name of copyright owner]
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# CDDL HEADER END
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob HalleyCOMPONENT_PROJECT_URL= http://www.gnu.org/software/bash/
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein sha256:3f627124a83c6d34db503a923e20710d370573a29dd5d11d6f116d1aee7be1da
704e6c8876907aac0bf7380effca8bca400d4acdMark AndrewsCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/bash/$(COMPONENT_ARCHIVE)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsBASH_PATCHLEVEL=$(shell grep -h "define PATCHLEVEL" $(COMPONENT_DIR)/patches/bash* | nawk '{print $$NF}' | sort -n | tail -1)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinIPS_COMPONENT_VERSION = $(COMPONENT_VERSION).$(BASH_PATCHLEVEL)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Enable C99 mode + -Xc for it's additional warnings.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Use the maximum number of registers on sparc since we have no libraries
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# 8 byte memory alignment + interpretation of non-alignment instead of SIGBUS
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# -xinline=%auto -- we like inlining where appropriate
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# -xbuiltin=%none -- builtins have been known to be buggy
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# configure checks for some functions, but doesn't seem to want to link in
6ea1b817e31b89a627e146fe69e23ea0a64c89ecBob Halley# the required libraries for them. We avoid linking with libthread.so.1
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# just because we pass -mt, by explicitly passing -lc.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# -z redlocsym -- let's shrink the SHT_SYMTAB as much as we can
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# The bash test harness needs the GNU userland utilities
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTEST_PATH = "PATH=$(BUILD_DIR_64):$(GNUBIN):$(USRBINDIR)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinTEST_OUTPUT = $(COMPONENT_DIR)/bash_test_results_$(MACH).out
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-prompt-string-decoding
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --enable-separate-helpfiles
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --enable-single-help-strings
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --disable-strict-posix-default
0f78f780648806bcb3e374b7dafac73e6c558ea8Mark AndrewsCONFIGURE_OPTIONS += --with-installed-readline=no