4239N/A# The contents of this file are subject to the terms of the 4239N/A# Common Development and Distribution License (the "License"). 4239N/A# You may not use this file except in compliance with the License. 4239N/A# See the License for the specific language governing permissions 4239N/A# and limitations under the License. 4239N/A# When distributing Covered Code, include this CDDL HEADER in each 4239N/A# If applicable, add the following below this CDDL HEADER, with the 4239N/A# fields enclosed by brackets "[]" replaced with your own identifying 4239N/A# information: Portions Copyright [yyyy] [name of copyright owner] 4239N/A# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4239N/A# COMPONENT_VERSION <major>.<minor>.<teeny> 4239N/A# is transformed into <major>.<minor> for RUBY_VER. 4239N/A# First change the separator '.' to ' ', so we can use "word" to pull the 4239N/A# first two space-separated words from the string. 4239N/A# the library-compatible version 4239N/A# these macros are used in the package manifest 4239N/A# an erroneous full build directory in its RUNPATH. The below change to 4239N/A# and prevents its regeneration. 4239N/A# Apply some of the edits here--including to the sed scripts themselves. 4239N/A# These modifications of ruby.1 must occur after ruby 4239N/A# is installed, not before. Although there are some other patches 4239N/A# to ruby.1 that occur before, the ruby installation does some 4239N/A# formatting of ruby.1 that won't occur if the below changes 4239N/A# default LD_OPTION $(LD_B_DIRECT) causes problems-- 4239N/A# during install of ruby, ruby is executed and will core dump 4239N/A# after compiling with this option 4239N/A# don't use LD_Z_IGNORE: causes ruby linker problems with 4239N/A# unreferenced symbol tgetent in libreadline, similar to bug #15617172 4239N/A# sparc build sometimes fails with studio 12.3 because of 17537968; 4239N/A# -xO3 worked around the problem. Also, iropt optimizer has a 4239N/A# (CR 20704428); dropping down to -xO2 works around the bug. 4239N/A# without this define, config fails frequently on i386 when including 4239N/A# many extensions don't get built and at least one error causes 4239N/A# change CONFIGURE_BINDIR.64 because this path will be embedded in 4239N/A# the header for ruby scripts; we are only building 64-bit, 4239N/A# so the real path for ruby will not have $(MACH64) in it 4239N/A# not strictly needed, since ruby doesn't use sbin, but 4239N/A# change this as well, for consistency with BINDIR 4239N/A# we are building 64-bit, but most of the ruby libraries (*.rb files) 4239N/A# are non-bit-specfic text files, so don't put them under lib/$(MACH64). 4239N/A# The 64-bit *.so libraries will be in the $(MACH64)-solaris$(SOLARIS_VERSION) 4239N/A# arch directories under lib 4239N/A# Don't need docs for ruby C source files 4239N/A# If Ruby is configured with __builtin_setjmp, may cause 4239N/A# problems with gems compiled with gcc. Studio compiler doesn't 4239N/A# report an error for __builtin_setjmp, but gcc would. 4239N/A# ensure we use the 64-bit configuration file, not the 32-bit one 4239N/A# ffi_raw_size(), although its prototype is in libffi's 4239N/A# Defining FFI_NO_RAW_API avoids use of ffi_raw_size(). 4239N/A# This is a workaround to bug 4239N/A# 17349280 - libffi is missing ffi_raw_size() 4239N/A# miniruby may core dump on sparc during build 4239N/A# Some tests produce warnings if HTTP_PROXY is set 4239N/A# This set of tests goes through thousands of entries in the passwd 4239N/A# and group table, taking hours to run; move it aside so we skip it. 4239N/A# There may also be spurious errors if group memberships are modified