4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/..
/make-rules
/shared-macros.mk
25 COMPONENT_NAME
= binutils
26 COMPONENT_VERSION
= 2.25.1
28 COMPONENT_PROJECT_URL
= http
://www.gnu.org
/software
/binutils
/
29 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
31 COMPONENT_ARCHIVE_URL
= http
://ftp.gnu.org
/gnu
/$(COMPONENT_NAME
)/$(COMPONENT_ARCHIVE
)
32 COMPONENT_ARCHIVE_HASH
= \
33 sha256
:b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22
34 COMPONENT_BUGDB
= utility
/gnu-binutils
36 include $(WS_TOP
)/make-rules
/prep.mk
37 include $(WS_TOP
)/make-rules
/configure.mk
38 include $(WS_TOP
)/make-rules
/ips.mk
40 PATH
=/usr
/gnu
/bin
:/usr
/bin
42 PARCH
= $(MACH
:i386
=i386-pc
)
43 GNU_ARCH
= $(PARCH
:sparc
=sparc-sun
)-solaris
$(SOLARIS_VERSION
)
45 PKG_MACROS
+= GNU_ARCH
="$(GNU_ARCH)"
47 CFLAGS
+= -std
=c99
$(CPP_XPG6MODE
)
48 CFLAGS
+= $(CPP_LARGEFILES
) $(CPP_POSIX
)
49 CXXFLAGS
+= $(CPP_LARGEFILES
) $(CPP_POSIX
)
50 CPPFLAGS
+= $(CPP_LARGEFILES
) $(CPP_POSIX
)
52 CONFIGURE_PREFIX
= /usr
/gnu
54 CONFIGURE_ENV
+= UNAME_LEGACY
=
55 CONFIGURE_OPTIONS
+= --mandir=$(CONFIGURE_MANDIR
)
56 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
57 CONFIGURE_OPTIONS
+= --enable-64-bit-bfd
58 CONFIGURE_OPTIONS
+= --enable-gold
=no
59 CONFIGURE_OPTIONS
+= --enable-plugins
=no
60 CONFIGURE_OPTIONS
+= --enable-nls
61 CONFIGURE_OPTIONS
+= --disable-libtool-lock
62 CONFIGURE_OPTIONS
+= --enable-largefile
=yes
64 CONFIGURE_OPTIONS
+= CPPFLAGS
="$(CPPFLAGS)"
66 $(INSTALL_32
): $(INSTALL_64
)
69 build
: $(BUILD_32_and_64
)
71 install: $(INSTALL_32_and_64
)
73 test: $(TEST_32_and_64
)
75 REQUIRED_PACKAGES
+= library
/zlib
76 REQUIRED_PACKAGES
+= system
/library