components/ruby/ruby-19/Solaris/rbconfig.sedscript
changeset 5477 5eabbdf042bc
parent 5476 f1df93f6aff1
child 5478 2b166911e3bb
--- a/components/ruby/ruby-19/Solaris/rbconfig.sedscript	Thu Feb 18 08:19:13 2016 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
-#
-# sed script to fix the rbconfig.rb file after 
-# the configure and install of ruby
-
-# use gcc/g++ instead of build-system-specific  paths to cc or CC
-
-# Note that for the first two command lines below, 
-# /usr/bin/sed correctly substitutes; /usr/bin/gsed does not.  
-# Use /usr/bin/sed for this script.
-s/\'CC=.*\/cc\'/\'CC=\/usr\/bin\/gcc\'/
-s/\'CXX=.*\/CC\'/\'CXX=\/usr\/bin\/g++\'/
-s/CONFIG\[\"CC\"\].*$/CONFIG\[\"CC\"\] = \"\/usr\/bin\/gcc\"/
-s/CONFIG\[\"CXX\"\].*$/CONFIG\[\"CXX\"\] = \"\/usr\/bin\/g++\"/
-s/CONFIG\[\"CFLAGS\"\].*$/CONFIG\[\"CFLAGS\"\] = \"-g -O3 -fPIC\"/
-s/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 
-# the pkg facet.gnu-links is true, so use the non-faceted paths
-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
-$a\
-ENV["GEM_HOME"] = "/usr/ruby/RUBY_VER/lib/ruby/gems/RUBY_LIB_VER"