Makefile revision 1244
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# CDDL HEADER START
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# The contents of this file are subject to the terms of the
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# Common Development and Distribution License (the "License").
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# You may not use this file except in compliance with the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# See the License for the specific language governing permissions
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# and limitations under the License.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# CDDL HEADER END
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye sha256:7be3ad1641b99b17f6a8be6a976f1f954e997c41e919ad7e0c418fe848c13c97
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gmp/$(COMPONENT_ARCHIVE)
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# -xthreadvar=%all: allow thread-local storage via __thread
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# qualifier for all types of variables (global, static and dynamic)
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCFLAGS += -xthreadvar=%all $(CPP_C99_EXTENDED_MATH)
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCXXFLAGS = -mt -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCXXFLAGS += -instances=global -template=geninlinefuncs -verbose=template
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCXXFLAGS += -xbuiltin=%none -xinline=%auto -xlibmil
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCXXFLAGS += $(studio_cplusplus_C99_ENABLE) $(studio_PIC)
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# -Qoption ccfe -features=zla: allow VLA/ZLA in C++ (like in C99)
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# assembler detection for GNU MP and GNU MPFR is done via MPN_PATH
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# at ./configure time. GNU MPFR wants to know GNU MP's MPN_PATH.
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye# libgmpxx.so.4 always gets built with unnecessary paths in RUNPATH/RPATH
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCONFIGURE_ENV += CXXFLAGS="$(CC_BITS) $(CXXFLAGS)"
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCONFIGURE_ENV += CXXLD="$(CXX) $(CC_BITS) $(CXXFLAGS) $(LDFLAGS)"
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCONFIGURE_ENV += CPP_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
c0550b01024b910b8c1468811c0ea663b10b1372Trond NorbyeCONFIGURE_ENV += CXXCPP="$(CXX) $(CC_BITS) $(CPPFLAGS) $(CXXFLAGS) -E"
test: $(TEST_32_and_64)