Makefile revision 3703
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= gcc
0N/ACOMPONENT_VERSION= 3.4.3
0N/ACOMPONENT_PROJECT_URL= http://gcc.gnu.org/
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0N/A# unfortunately we have our own "special" tarball and not the community version, so use that.
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:3ab488fe2df01bf54a57acd70e745266e19232edacf77512f77655296748e7a0
0N/ACOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE)
0N/ACOMPONENT_BUGDB= utility/gnu-compiler
0N/A
0N/ATPNO= 17028
0N/A
0N/Ainclude ../../make-rules/prep.mk
0N/Ainclude ../../make-rules/configure.mk
0N/Ainclude ../../make-rules/ips.mk
0N/A
0N/APARCH = $(MACH:i386=i386-pc)
0N/AGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
0N/A
0N/APKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
0N/A
0N/A# we build gcc with gcc
0N/ACOMPILER = gcc3
0N/A
0N/A# CC_BITS may get in the way
0N/ACC_BITS=
0N/A
0N/A# enabling this causes libstdc++ to break
0N/ALD_B_DIRECT=
0N/A
0N/ACONFIGURE_PREFIX = /usr/gcc/3.4
0N/A
0N/A# we need to override CONFIGURE_OPTIONS because GCC uses a configure that
0N/A# can't deal with CC as an argument
0N/ACONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
0N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
0N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/share/info
0N/ACONFIGURE_OPTIONS += --without-gnu-ld --with-ld=/usr/bin/ld
0N/ACONFIGURE_OPTIONS += --enable-languages='c,c++,f77,objc'
0N/ACONFIGURE_OPTIONS += --enable-shared
0N/A# sparc and x86 use different assemblers
0N/ACONFIGURE_OPTIONS.sparc += --without-gnu-as --with-as=/usr/bin/as
0N/ACONFIGURE_OPTIONS.i386 += --with-gnu-as --with-as=/usr/gnu/bin/as
0N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(MACH))
0N/A
0N/ACONFIGURE_ENV += CC="$(CC)"
0N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
0N/A
0N/ACOMPONENT_BUILD_ENV += STAGE1_CFLAGS="$(CFLAGS)"
0N/ACOMPONENT_BUILD_ENV += CFLAGS_FOR_TARGET="$(CFLAGS)"
0N/ACOMPONENT_BUILD_ENV += SHELL=$(CONFIG_SHELL)
0N/ACOMPONENT_BUILD_TARGETS = bootstrap
0N/A
0N/A# common targets
0N/Aconfigure: $(CONFIGURE_32)
0N/A
0N/Abuild: $(BUILD_32)
0N/A
0N/A$(PROTO_DIR)/.sedded: $(INSTALL_32)
0N/A (cd $(@D) ; for file in libstdc++.la libsupc++.la ; do \
0N/A $(MV) usr/gcc/3.4/lib/$$file usr/gcc/3.4/lib/$$file.orig ; \
0N/A sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/gcc/3.4/lib -lgcc_s -lm';" usr/gcc/3.4/lib/$$file.orig >usr/gcc/3.4/lib/$$file ; \
0N/A $(MV) usr/gcc/3.4/lib/$(MACH64)/$$file usr/gcc/3.4/lib/$(MACH64)/$$file.orig ; \
0N/A sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/gcc/3.4/lib/$(MACH64) -lgcc_s -lm';" usr/gcc/3.4/lib/$(MACH64)/$$file.orig >usr/gcc/3.4/lib/$(MACH64)/$$file ; \
0N/A done)
0N/A $(TOUCH) $@
0N/A
0N/Ainstall: $(PROTO_DIR)/.sedded
0N/A
0N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0N/A
0N/Atest: $(TEST_32)
0N/A
0N/Ainclude ../../make-rules/depend.mk
0N/A