Makefile revision 5680
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/' \
3845N/A '-e "s|^.*$(CC).*$$|XXX_CC_XXX|"' \
3845N/A '-e "s/ld: warning: symbol .* has differing sizes:$$/XXX_CC_XXX/"' \
3845N/A '-e "s/.*value=0x[0-9a-f]\+.*$$/XXX_CC_XXX/"' \
3845N/A '-e "s/.* definition taken$$/XXX_CC_XXX/"' \
5347N/A '-e "s|.*Assertions checked:.*$$|XXX_CC_XXX|g" ' \
5347N/A '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
5347N/A '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
5347N/A '-e "s|.*recipe for target.*failed$$|XXX_CC_XXX|g" ' \
5347N/A '-e "s|^make.*\*\*\*.*Error.*$$|XXX_CC_XXX|g" ' \