From 03845d8f8f17fe4442e70e4cfb9548505bdd6b7f Mon Sep 17 00:00:00 2001
From: Aurelien Larcher <aurelien.larcher@gmail.com>
Date: Sat, 10 Feb 2018 20:35:16 +0100
Subject: [PATCH] ruby-23: use gcc-6

---
 components/ruby/ruby-23/Solaris/rbconfig.sedscript |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/ruby/ruby-23/Solaris/rbconfig.sedscript b/components/ruby/ruby-23/Solaris/rbconfig.sedscript
index 551fdb4..3eb1d2c 100644
--- a/components/ruby/ruby-23/Solaris/rbconfig.sedscript
+++ b/components/ruby/ruby-23/Solaris/rbconfig.sedscript
@@ -30,10 +30,10 @@
 # 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|\'CC=.*/cc\'|\'CC=%%CC%%\'|
+s|\'CXX=.*/CC\'|\'CXX=%%CXX%%\'|
+s|CONFIG\[\"CC\"\].*$|CONFIG\[\"CC\"\] = \"%%CC%%\"|
+s|CONFIG\[\"CXX\"\].*$|CONFIG\[\"CXX\"\] = \"%%CXX%%\"|
 s/CONFIG\[\"CFLAGS\"\].*$/CONFIG\[\"CFLAGS\"\] = \"-g -O3 -fPIC\"/
 s/CONFIG\[\"CCDLFLAGS\"\].*$/CONFIG\[\"CCDLFLAGS\"\] = \"-fPIC\"/
 s/"$(CC) -G"/"$(CC) -shared"/

--
Gitblit v1.9.3