Makefile revision 1273
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# CDDL HEADER START
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# The contents of this file are subject to the terms of the
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync# Common Development and Distribution License (the "License").
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsync# You may not use this file except in compliance with the License.
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync# See the License for the specific language governing permissions
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync# and limitations under the License.
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync# When distributing Covered Code, include this CDDL HEADER in each
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# If applicable, add the following below this CDDL HEADER, with the
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsync# CDDL HEADER END
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# unfortunately we have our own "special" tarball and not the community version, so use that.
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync sha256:3ab488fe2df01bf54a57acd70e745266e19232edacf77512f77655296748e7a0
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE)
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
f2653ef8b5f8e8b668eb4dbf2543262fe260dbf2vboxsync# we build gcc with gcc
8be52b949bfcf8707a76bc4dfc34500f1deb976bvboxsync# CC_BITS may get in the way
8be52b949bfcf8707a76bc4dfc34500f1deb976bvboxsync# enabling this causes libstdc++ to break
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# we need to override CONFIGURE_OPTIONS because GCC uses a configure that
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsync# can't deal with CC as an argument
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info
037c8b175a3e0c66279c81aaeaabf976ce9b66e3vboxsyncCONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCONFIGURE_OPTIONS += --enable-languages='c,c++,f77,objc'
d25cdc250684c6ef5a0884806d778f96126501b3vboxsync# sparc and x86 use different assemblers
a8e0cb7ddfd05bcabf5e18959cf09e723f254663vboxsyncCONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/bin/as
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as
3bf4bd3347c2bc3bc7c6b24672096f514235ad76vboxsyncCOMPONENT_BUILD_ENV += CFLAGS_FOR_TARGET="$(CFLAGS)"
sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/sfw/lib -lgcc_s -lm';" usr/sfw/lib/$$file.orig >usr/sfw/lib/$$file ; \
sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/sfw/lib/$(MACH64) -lgcc_s -lm';" usr/sfw/lib/$(MACH64)/$$file.orig >usr/sfw/lib/$(MACH64)/$$file ; \
$(TOUCH) $@
test: $(TEST_32)