2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A# Copyright (c) 2013, 2014, Oracle
and/or its affiliates. All rights reserved.
2N/A# the configure and install of ruby
2N/A# use gcc/g++ instead of build-system-specific paths to cc or CC
2N/A# Note that for the first two command lines below,
2N/As/\'CC=.*\/cc\'/\'CC=\/usr\/bin\/gcc\'/
2N/As/\'CXX=.*\/CC\'/\'CXX=\/usr\/bin\/g++\'/
2N/As/CONFIG\[\"CC\"\].*$/CONFIG\[\"CC\"\] = \"\/usr\/bin\/gcc\"/
2N/As/CONFIG\[\"CXX\"\].*$/CONFIG\[\"CXX\"\] = \"\/usr\/bin\/g++\"/
2N/As/CONFIG\[\"CFLAGS\"\].*$/CONFIG\[\"CFLAGS\"\] = \"-g -O3 -fPIC\"/
2N/As/CONFIG\[\"CCDLFLAGS\"\].*$/CONFIG\[\"CCDLFLAGS\"\] = \"-fPIC\"/
s/"$(CC) -G"/"$(CC) -shared"/
s/"$(CXX) -G"/"$(CXX) -shared"/
# These paths to GNU commands are symlinks which are only available when
s/\/usr\/bin\/ginstall/\/usr\/gnu\/bin\/install/
s/\/usr\/bin\/gmkdir/\/usr\/gnu\/bin\/mkdir/
s/\/usr\/bin\/gsed/\/usr\/gnu\/bin\/sed/
# add this line to the end of the file