Makefile revision 5680
#
# 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
#
#
#
TPNO= 24584
# Userland default includes -mt which links with libthread which we don't need.
# We prefer openssl over nettle.
# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then
# appends CFLAGS to that. Reset the former here so we can build with Studio.
# We need GNU awk for the following to work; hence the PATH tweak.
# We then convert BSD-style section numbers in the libarchive man pages to
# Solaris-style section numbers.
cd $(@D)/libarchive ; \
-e 's/\(Dt.*LIBARCHIVE.*\)3ARCHIVE/\13LIB/' \
'-e "s|^.*$(CC).*$$|XXX_CC_XXX|"' \
'-e "s/.*value=0x[0-9a-f]\+.*$$/XXX_CC_XXX/"' \
'-e "s/.* definition taken$$/XXX_CC_XXX/"' \
'-e "s|.*Assertions checked:.*$$|XXX_CC_XXX|g" ' \
'-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
'-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
'-e "s|.*recipe for target.*failed$$|XXX_CC_XXX|g" ' \
'-e "s|^make.*\*\*\*.*Error.*$$|XXX_CC_XXX|g" ' \
'-e "/^XXX_CC_XXX$$/d"'