2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen#
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# CDDL HEADER START
f2f86ec77d1e4986e95990976447c2d1520a8357Timo Sirainen#
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# The contents of this file are subject to the terms of the
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# Common Development and Distribution License (the "License").
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# You may not use this file except in compliance with the License.
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen#
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# or http://www.opensolaris.org/os/licensing.
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# See the License for the specific language governing permissions
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainen# and limitations under the License.
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen#
9d1526ac8bcec9aff3c3a32f092ee2f3da2760b7Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
1b0cfbf3cc77a670b92fff5c30f7b1eb17a63ab1Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen#
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# CDDL HEADER END
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen#
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1b0cfbf3cc77a670b92fff5c30f7b1eb17a63ab1Timo Sirainen#
1b0cfbf3cc77a670b92fff5c30f7b1eb17a63ab1Timo Siraineninclude ../../make-rules/shared-macros.mk
2793e3bd31d212d6506686aa70773e13d9d98195Timo Sirainen
2793e3bd31d212d6506686aa70773e13d9d98195Timo SirainenCOMPONENT_NAME= binutils
045c4c65d4940d5e1bd19681df4932ec990cbca2Timo SirainenCOMPONENT_VERSION= 2.23.1
2793e3bd31d212d6506686aa70773e13d9d98195Timo SirainenCOMPONENT_PROJECT_URL= http://www.gnu.org/software/binutils/
1c93b5986ac03e0b3cd69647332b412ecef4d6a9Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1c93b5986ac03e0b3cd69647332b412ecef4d6a9Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
2793e3bd31d212d6506686aa70773e13d9d98195Timo SirainenCOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
COMPONENT_ARCHIVE_HASH= \
sha256:2ab2e5b03e086d12c6295f831adad46b3e1410a3a234933a2e8fac66cb2e7a19
COMPONENT_BUGDB= utility/gnu-binutils
TPNO= 7483
include $(WS_MAKE_RULES)/prep.mk
include $(WS_MAKE_RULES)/configure.mk
include $(WS_MAKE_RULES)/ips.mk
PARCH = $(MACH:i386=i386-pc)
GNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
PKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
CFLAGS += $(studio_C99_ENABLE) $(CPP_XPG6MODE)
CFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
CXXFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
CPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
CONFIGURE_PREFIX = /usr/gnu
CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
CONFIGURE_OPTIONS += --enable-64-bit-bfd
CONFIGURE_OPTIONS += --enable-gold=no
CONFIGURE_OPTIONS += --enable-plugins=no
CONFIGURE_OPTIONS += --enable-nls
CONFIGURE_OPTIONS += --disable-libtool-lock
CONFIGURE_OPTIONS += --enable-largefile=yes
CONFIGURE_OPTIONS += CC="$(CC)"
CONFIGURE_OPTIONS += CXX="$(CXX)"
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
test: $(TEST_32)
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math