Makefile revision 3721
2127N/A# The contents of this file are subject to the terms of the 2127N/A# Common Development and Distribution License (the "License"). 2127N/A# You may not use this file except in compliance with the License. 2127N/A# See the License for the specific language governing permissions 2127N/A# and limitations under the License. 2127N/A# When distributing Covered Code, include this CDDL HEADER in each 2127N/A# If applicable, add the following below this CDDL HEADER, with the 2127N/A# fields enclosed by brackets "[]" replaced with your own identifying 2127N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2401N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 2127N/A# COMPONENT_VERSION <major>.<minor>.<teeny> 2127N/A# is transformed into <major>.<minor> for RUBY_VER. 2127N/A# First change the separator '.' to ' ', so we can use "word" to pull the 2127N/A# first two space-separated words from the string. 2127N/A# the library-compatible version 2127N/A# these macros are used in the package manifest 3721N/A# Apply some of the edits here--including to the sed scripts themselves. 2127N/A# These modifications of ruby.1 must occur after ruby 2127N/A# is installed, not before. Although there are some other patches 2127N/A# to ruby.1 that occur before, the ruby installation does some 2127N/A# formatting of ruby.1 that won't occur if the below changes 2127N/A# default LD_OPTION $(LD_B_DIRECT) causes problems-- 2127N/A# during install of ruby, ruby is executed and will core dump 2127N/A# after compiling with this option 2127N/A# don't use LD_Z_IGNORE: causes ruby linker problems with 2127N/A# unreferenced symbol tgetent in libreadline, similar to bug #15617172 2127N/A# i386 build runs into a Solaris ube compiler bug (#16775467) 2127N/A# while compiling load.c; it's having trouble with -xO4, so work around 2127N/A# by using -xO3 instead. 16775467 was patched for 12.1 compiler, so 2127N/A# the below should not no longer be necessary when we switch to 2127N/A# without this define, config fails frequently on i386 when including 2127N/A# many extensions don't get built and at least one error causes 2127N/A# change CONFIGURE_BINDIR.64 because this path will be embedded in 2127N/A# the header for ruby scripts; we are only building 64-bit, 2127N/A# so the real path for ruby will not have $(MACH64) in it 2127N/A# not strictly needed, since ruby doesn't use sbin, but 2127N/A# change this as well, for consistency with BINDIR 2541N/A# we are building 64-bit, but most of the ruby libraries (*.rb files) 2541N/A# are non-bit-specfic text files, so don't put them under lib/$(MACH64). 2541N/A# The 64-bit *.so libraries will be in the $(MACH64)-solaris$(SOLARIS_VERSION) 2541N/A# arch directories under lib 3721N/A# Don't need docs for ruby C source files 2127N/A# ffi_raw_size(), although its prototype is in libffi's 2127N/A# Defining FFI_NO_RAW_API avoids use of ffi_raw_size(). 2127N/A# This is a workaround to bug 2127N/A# 17349280 - libffi is missing ffi_raw_size() 2401N/A# miniruby may core dump on sparc during build