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