1725N/A# The contents of this file are subject to the terms of the 1725N/A# Common Development and Distribution License (the "License"). 1725N/A# You may not use this file except in compliance with the License. 1725N/A# See the License for the specific language governing permissions 1725N/A# and limitations under the License. 1725N/A# When distributing Covered Code, include this CDDL HEADER in each 1725N/A# If applicable, add the following below this CDDL HEADER, with the 1725N/A# fields enclosed by brackets "[]" replaced with your own identifying 1725N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5347N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. 1725N/A# Userland default includes -mt which links with libthread which we don't need. 4995N/A# We prefer openssl over nettle. 1725N/A# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then 1725N/A# appends CFLAGS to that. Reset the former here so we can build with Studio. 1725N/A# We need GNU awk for the following to work; hence the PATH tweak. 4995N/A# We then convert BSD-style section numbers in the libarchive man pages to 4995N/A# Solaris-style section numbers. 4995N/A -e
's/Xr \(malloc\|getpwuid\|getgrgud\|strerror\|printf\|getpwnam\|getgrnam\) 3ARCHIVE/Xr \13C/' \
4995N/A -e
's/\(Dt.*LIBARCHIVE.*\)3ARCHIVE/\13LIB/' \
6259N/A# Needed for "gmake test" to work successfully. 6259N/A# If SHELLOPTS is exported (as it is by the userland makefiles), 6259N/A# then all shell options get exported to child invocations of bash, 6259N/A# which results in test failures due to nounset and xtrace being 6259N/A# set unexpectedly, and errors such as "$1: unbound variable" and 6259N/A# diffs failing due to script tracing in output files. 6259N/A '-e "/Assertions failed:/p" ' \
6259N/A '-e "/Skips reported:/p" ' \
6259N/A '-e "/Failing tests:/p" ' \