4059N/A# The contents of this file are subject to the terms of the 4059N/A# Common Development and Distribution License (the "License"). 4059N/A# You may not use this file except in compliance with the License. 4059N/A# See the License for the specific language governing permissions 4059N/A# and limitations under the License. 4059N/A# When distributing Covered Code, include this CDDL HEADER in each 4059N/A# If applicable, add the following below this CDDL HEADER, with the 4059N/A# fields enclosed by brackets "[]" replaced with your own identifying 4059N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5552N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4059N/A# Override these compiler settings because they are causing problems 4059N/A# in the ON build of the contrib components. 4059N/A# ON doesn't use or need these settings or the compiler has some of them 4059N/A# This also produces a perl more inline with past perl's. For better 4059N/A# Sparc optimization -xO4 causes issues with dtrace probes on Sparc 4059N/A# -Dperl_static_inline="static" turns OFF "static inline". 4059N/A# This was added because Configure probes 4059N/A# for static inline (C99 feature) and finds it in our default Studio 4059N/A# compiler. But in the ON build of the perl add-ons, sun-solaris, the 4059N/A# shadow build with gcc 3.4.3 doesn't understand static inline so errors. 4059N/A# The extra Configure parameters (cf_email, cf_by, myhostname) and 4059N/A# the gawk and sed that follow are attempting to sanatize the 4059N/A# are discoverable in perl's config via "perl -V". 4059N/A# I'm assuming our compilers live on a path that contains "SUNWspro". 4059N/A# If that changes the sed filter needs to change. 4059N/A '/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \ 4059N/A# Put studio compilers in PATH so we can tell Configure and gmake just 4059N/A# use cc. Trying to avoid the full path so it doesn't end up in 5552N/A# Getting 1 different result between sparc and x86. 5552N/A# Throw out everything prior to test results. 5552N/A '-e "1,/runtests choose/d"' \
4059N/A# perl's install path for sparc is based off the value of the 4059N/A# "arch" command. So we must package that way also.