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