2032N/A#
2032N/A# CDDL HEADER START
2032N/A#
2032N/A# The contents of this file are subject to the terms of the
2032N/A# Common Development and Distribution License (the "License").
2032N/A# You may not use this file except in compliance with the License.
2032N/A#
2032N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2032N/A# or http://www.opensolaris.org/os/licensing.
2032N/A# See the License for the specific language governing permissions
2032N/A# and limitations under the License.
2032N/A#
2032N/A# When distributing Covered Code, include this CDDL HEADER in each
2032N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2032N/A# If applicable, add the following below this CDDL HEADER, with the
2032N/A# fields enclosed by brackets "[]" replaced with your own identifying
2032N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2032N/A#
2032N/A# CDDL HEADER END
2032N/A#
2032N/A
2032N/A#
6263N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2032N/A#
2032N/A# sed script to fix the rbconfig.rb file after
2032N/A# the configure and install of ruby
2032N/A
6613N/A# use gcc/g++ instead of build-system-specific paths to Studio compilers cc/CC
2032N/A
2032N/A# Note that for the first two command lines below,
2032N/A# /usr/bin/sed correctly substitutes; /usr/bin/gsed does not.
2032N/A# Use /usr/bin/sed for this script.
2032N/As/\'CC=.*\/cc\'/\'CC=\/usr\/bin\/gcc\'/
2032N/As/\'CXX=.*\/CC\'/\'CXX=\/usr\/bin\/g++\'/
6613N/As/\'CFLAGS=.[^\']*\'/\'CFLAGS=CFLAGS_GCC\'/
6613N/As/\'CXXFLAGS=.[^\']*\'/\'CXXFLAGS=CXXFLAGS_GCC\'/
2032N/As/CONFIG\[\"CC\"\].*$/CONFIG\[\"CC\"\] = \"\/usr\/bin\/gcc\"/
2032N/As/CONFIG\[\"CXX\"\].*$/CONFIG\[\"CXX\"\] = \"\/usr\/bin\/g++\"/
6613N/As/CONFIG\[\"CFLAGS\"\].*$/CONFIG\[\"CFLAGS\"\] = \"CFLAGS_GCC\"/
6613N/As/CONFIG\[\"CXXFLAGS\"\].*$/CONFIG\[\"CXXFLAGS\"\] = \"CXXFLAGS_GCC\"/
2032N/As/CONFIG\[\"CCDLFLAGS\"\].*$/CONFIG\[\"CCDLFLAGS\"\] = \"-fPIC\"/
2032N/As/"$(CC) -G"/"$(CC) -shared"/
2032N/As/"$(CXX) -G"/"$(CXX) -shared"/
2032N/A
2032N/A# These paths to GNU commands are symlinks which are only available when
2032N/A# the pkg facet.gnu-links is true, so use the non-faceted paths
6263N/As%/usr/bin/ginstall%/usr/gnu/bin/install%
6263N/As%/usr/bin/gmkdir%/usr/gnu/bin/mkdir%
6263N/As%/usr/bin/gsed%/usr/gnu/bin/sed%
6263N/As%/usr/bin/ggrep%/usr/gnu/bin/grep%