author | April Chin <april.chin@oracle.com> |
Wed, 06 Nov 2013 14:12:13 -0800 | |
branch | s11-update |
changeset 2813 | db0bfa0fa498 |
parent 199 | components/ruby/Solaris/rbconfig.sedscript@b87534be1a76 |
permissions | -rw-r--r-- |
199
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
1 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
3 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
7 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
12 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
18 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
20 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
21 |
|
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
22 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
23 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
24 |
# |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
25 |
# sed script to fix the rbconfig.rb file after |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
26 |
# the configure and install of ruby |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
27 |
|
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
28 |
# use gcc instead of build-system-specific paths to cc |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
29 |
s/CONFIG\[\"CC\"\].*$/CONFIG\[\"CC\"\] = \"\/usr\/sfw\/bin\/gcc\"/ |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
30 |
s/CONFIG\[\"CFLAGS\"\].*$/CONFIG\[\"CFLAGS\"\] = \"-g -O3 -fPIC\"/ |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
31 |
# use gcc instead of build-system-specific paths to cc |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
32 |
s/CONFIG\[\"CPP\"\].*$/CONFIG\[\"CPP\"\] = \"\/usr\/sfw\/bin\/gcc -E\"/ |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
33 |
s/CONFIG\[\"LDSHARED\"\].*$/CONFIG\[\"LDSHARED"\] = \"$(CC) -G\" / |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
34 |
# use gcc LDFLAGS instead of cc |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
35 |
s/CONFIG\[\"CCDLFLAGS\"\].*$/CONFIG\[\"CCDLFLAGS\"\] = \"-fPIC\"/ |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
36 |
# add this line to the end of the file |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
37 |
$a\ |
b87534be1a76
7023222 move ruby to userland
April Chin <april.chin@oracle.com>
parents:
diff
changeset
|
38 |
ENV["GEM_HOME"] = "/var/ruby/1.8/gem_home" |