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