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