Makefile revision 5680
246N/A#
246N/A# CDDL HEADER START
246N/A#
246N/A# The contents of this file are subject to the terms of the
246N/A# Common Development and Distribution License (the "License").
246N/A# You may not use this file except in compliance with the License.
246N/A#
246N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
246N/A# or http://www.opensolaris.org/os/licensing.
246N/A# See the License for the specific language governing permissions
246N/A# and limitations under the License.
246N/A#
246N/A# When distributing Covered Code, include this CDDL HEADER in each
246N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
246N/A# If applicable, add the following below this CDDL HEADER, with the
246N/A# fields enclosed by brackets "[]" replaced with your own identifying
246N/A# information: Portions Copyright [yyyy] [name of copyright owner]
246N/A#
246N/A# CDDL HEADER END
246N/A#
5680N/A
5680N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
246N/A#
5680N/A# At the moment, we build both 32-bit and 64-bit versions of binutils, but only
5680N/A# deliver the 32-bit binaries and libraries.
5680N/ABUILD_BITS= 32_and_64
5680N/ACOMPILER= gcc
246N/Ainclude ../../make-rules/shared-macros.mk
246N/A
246N/ACOMPONENT_NAME= binutils
5055N/ACOMPONENT_VERSION= 2.25.1
246N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
844N/ACOMPONENT_ARCHIVE_HASH= \
5055N/A sha256:b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22
1258N/ACOMPONENT_BUGDB= utility/gnu-binutils
246N/A
5055N/ATPNO= 23923
2899N/A
5680N/ATEST_TARGET= $(TEST_32)
5680N/Ainclude $(WS_MAKE_RULES)/gnu-component.mk
246N/A
5055N/APATCH_LEVEL := 0
5055N/A
246N/APARCH = $(MACH:i386=i386-pc)
246N/AGNU_ARCH = $(PARCH:sparc=sparc-sun)-solaris$(SOLARIS_VERSION)
246N/A
246N/APKG_MACROS += GNU_ARCH="$(GNU_ARCH)"
246N/A
5055N/ACFLAGS.i386 = -mtune=opteron -march=opteron
5055N/ACFLAGS.sparc = -mtune=ultrasparc3 -mcpu=ultrasparc3 -mvis2 \
5055N/A -mno-unaligned-doubles -mhard-float -mimpure-text
5055N/A
5055N/ACFLAGS = $(CC_BITS) -g -O2 -std=c99
5055N/ACFLAGS += $(CFLAGS.$(MACH))
5055N/ACFLAGS += -D_REENTRANT $(CPP_LARGEFILES) $(CPP_POSIX)
5055N/ACXXFLAGS = $(CC_BITS) -g -O2 -std=c++03
5055N/ACXXFLAGS += $(CFLAGS.$(MACH))
5055N/ACXXFLAGS += -D_REENTRANT $(CPP_LARGEFILES) $(CPP_POSIX)
5055N/ACPPFLAGS += -D_REENTRANT $(CPP_LARGEFILES) $(CPP_POSIX)
1365N/A
5680N/ACONFIGURE_PREFIX = $(USRDIR)/gnu
246N/A
5055N/ACONFIGURE_ENV += LD_OPTIONS="$(LD_OPTIONS)"
5055N/ACONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
5055N/ACONFIGURE_ENV += LIBS="$(LIBS)"
5055N/ACONFIGURE_ENV += PATH="$(PATH)"
5055N/A
1365N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
1365N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
5680N/ACONFIGURE_OPTIONS += --disable-gold
1365N/ACONFIGURE_OPTIONS += --disable-libtool-lock
5680N/ACONFIGURE_OPTIONS += --enable-64-bit-bfd
5680N/ACONFIGURE_OPTIONS += --enable-deterministic-archives
5680N/ACONFIGURE_OPTIONS += --enable-host-shared
5680N/ACONFIGURE_OPTIONS += --enable-largefile
5680N/ACONFIGURE_OPTIONS += --enable-nls
5680N/ACONFIGURE_OPTIONS += --enable-plugins
3817N/A
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += system/library/math
5055N/AREQUIRED_PACKAGES += system/library/flex-runtime