rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / developer / binutils / Makefile
blob91aeb0ee255f7916e0699850d2334e453d9e279c
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018 Norm Jacobs
25 # Copyright (c) 2018 Ken Mays
26 # Copyright (c) 2020 Michal Nowak
27 # Copyright (c) 2022 Klaus Ziegler
28 # Copyright (c) 2022 Niklas Poslovski
31 BUILD_BITS= 64
32 USE_COMMON_TEST_MASTER= no
33 include ../../../make-rules/shared-macros.mk
35 COMPONENT_NAME= binutils
36 COMPONENT_VERSION= 2.42
37 COMPONENT_SUMMARY= GNU collection of binary tools like ld, as
38 COMPONENT_PROJECT_URL= https://www.gnu.org/software/binutils/
39 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
40 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
41 COMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
42 COMPONENT_ARCHIVE_HASH= sha256:f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800
43 COMPONENT_FMRI= developer/gnu-binutils
44 COMPONENT_CLASSIFICATION=Development/GNU
46 include $(WS_MAKE_RULES)/common.mk
48 PATH= $(PATH.gnu)
50 CONFIGURE_PREFIX= /usr/gnu
52 CONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
53 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
54 CONFIGURE_OPTIONS += --enable-64-bit-bfd
55 CONFIGURE_OPTIONS += --enable-gold=no
56 CONFIGURE_OPTIONS += --enable-plugins=yes
57 CONFIGURE_OPTIONS += --enable-nls
58 CONFIGURE_OPTIONS += --disable-libtool-lock
59 CONFIGURE_OPTIONS += --enable-largefile=yes
60 CONFIGURE_OPTIONS += --with-system-zlib
61 CONFIGURE_OPTIONS += --host=$(GCC_GNU_TRIPLET)
62 CONFIGURE_OPTIONS += --build=$(GCC_GNU_TRIPLET)
63 CONFIGURE_OPTIONS += --target=$(GCC_GNU_TRIPLET)
65 # This warning will break build of current illumos-gate
66 # as warnings will be generated for grub and loader.
67 # Once illumos-gate will get appropriate fix, this
68 # option should be removed.
69 CONFIGURE_OPTIONS += --enable-warn-rwx-segments=no
71 COMPONENT_TEST_ARGS += -k
73 # Keep only the test results. Details are always in the build directory
74 COMPONENT_TEST_TRANSFORMS += \
75 '-n '\
76 '-e "/^\# of/p" '\
77 '-e "/Summary =/p" '
79 # Master test results are different between amd64 and SPARCV9.
80 COMPONENT_TEST_MASTER = \
81 $(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH64).master
83 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/ar
84 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/as
85 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/ld
86 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/nm
87 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/objcopy
88 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/objdump
89 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/ranlib
90 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/readelf
91 PKG_HARDLINKS += usr/gnu/$(GCC_GNU_TRIPLET)/bin/strip
93 # Auto-generated dependencies
94 REQUIRED_PACKAGES += compress/zstd
95 REQUIRED_PACKAGES += library/zlib
96 REQUIRED_PACKAGES += system/library