363N/A#!/bin/sh
363N/A#
363N/A# CDDL HEADER START
363N/A#
363N/A# The contents of this file are subject to the terms of the
363N/A# Common Development and Distribution License (the "License").
363N/A# You may not use this file except in compliance with the License.
363N/A#
363N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
363N/A# or http://www.opensolaris.org/os/licensing.
363N/A# See the License for the specific language governing permissions
363N/A# and limitations under the License.
363N/A#
363N/A# When distributing Covered Code, include this CDDL HEADER in each
363N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
363N/A# If applicable, add the following below this CDDL HEADER, with the
363N/A# fields enclosed by brackets "[]" replaced with your own identifying
363N/A# information: Portions Copyright [yyyy] [name of copyright owner]
363N/A#
363N/A# CDDL HEADER END
363N/A#
363N/A
363N/A#
695N/A# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
363N/A#
363N/A
695N/A# The fips module is built with Sun Studio cc compile on sparc and x86.
695N/A# On x86, this cc wrapper is used to remove "-fast" from the compiler
695N/A# option. According to the "OpenSSL FIPS 140-2 Security Policy"
695N/A# document, no file in the source distribution may be changed in any way
695N/A# and as a result, this wrapper is used to remove the -fast that is
695N/A# passed to the Studio cc compiler.
695N/A# On sparc, this wrapper is just a pass through to cc.
695N/A
695N/AMACH=`uname -p`
363N/A
695N/Aif [ "$MACH" = "sparc" ]; then
695N/A exec $REALCC "$@"
695N/Aelse
695N/A CC_CMD=""
695N/A while [ $# -ne 0 ]; do
695N/A if [ "$1" != "-fast" ]; then
695N/A CC_CMD="$CC_CMD '$1'"
695N/A fi
695N/A shift;
695N/A done
695N/A
695N/A eval $REALCC $CC_CMD
695N/Afi
695N/A