#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# I want to override PERL_VERSION and PERL_ARCH because when building
# a new version of perl it probably isn't installed so shared-macros.mk
# can't call it.
#
# Override these compiler settings because they are causing problems
# in the ON build of the contrib components.
# ON doesn't use or need these settings or the compiler has some of them
# on by default.
# This also produces a perl more inline with past perl's. For better
# or worse.
#
# Sparc optimization -xO4 makes perl dtrace probes broken
#
# The extra Configure parameters (cf_email, cf_by, myhostname) and
# the gawk and sed that follow are attempting to sanatize the
# resulting config.sh of values from our build environment that
# are discoverable in perl's config via "perl -V".
# I'm assuming our compilers live on a path that contains "SUNWspro".
# If that changes the sed filter needs to change.
#
-Dprefix=$(PERLVERDIR) \
-Dprivlib=$(PERLLIBDIR) \
-Dsitelib=$(PERLSITEDIR) \
-Dvendorprefix=$(PERLVERDIR) \
-Dvendorlib=$(PERLVENDORDIR) \
-Duseshrplib \
-Dusedtrace \
-Duse64bitint \
-Dcc="cc" \
-Dcf_email="perl@solaris-userland.java.net" \
-Dcf_by="perl-bugs" \
-Dmyhostname="localhost" \
-Dmksymlinks \
-O \
-de
(cd $(@D); \
gawk \
'/^myuname=/{print $$1" localhost "$$3" "$$5" "$$6" "$$7"\047"} ; \
| \
#
# perl's install path for sparc is based off the value of the
# "arch" command. So we must package that way also.
#
#
# Put studio compilers in PATH so we can tell Configure and gmake just
# use cc. Trying to avoid the full path so it doesn't end up in
# perl's config.
#
# ST=single-thread. MT=multi-thread. The only difference in the build is that
# $(CONFIGURE_THREAD_OPTIONS) gets added to $(CONFIGURE_OPTIONS) in the MT case.
#
install: $(INSTALL_32)
test: $(TEST_32)
# not yet tested with ASLR