2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2013 Andrzej Szeszo. All rights reserved.
14 # Copyright 2016-2019 Aurelien Larcher. All rights reserved.
15 # Copyright 2021 Andreas Wacknitz. All rights reserved.
18 USE_PARALLEL_BUILD
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 11.5.0
22 COMPONENT_SRC
= gcc-releases-gcc-
$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
24 COMPONENT_ARCHIVE_URL
= https
://github.com
/gcc-mirror
/gcc
/archive
/releases
/$(COMPONENT_ARCHIVE
)
25 COMPONENT_ARCHIVE_HASH
= sha256
:ab1a9172b03f552f2a6277d1316ad91b0b025e72ef1837859b0121d85a89d51a
28 MPFR_ARCHIVE_HASH
= sha256
:b9df93635b20e4089c29623b19420c4ac848a1b29df1cfd59f26cab0d2666aa0
31 MPC_ARCHIVE_HASH
= sha256
:ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
34 GMP_ARCHIVE_HASH
= sha256
:ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb
36 include $(WS_MAKE_RULES
)/gcc-component.mk
38 GCC_MAJOR
="$(GCC_COMPONENT_VERSION_MAJOR)"
41 # Workaround platform definition inconsistency
42 ifeq ($(strip $(BUILD_BITS
)),64)
43 PARCH
= $(MACH
:i386
=x86_64-pc
)
45 PARCH
= $(MACH
:i386
=i386-pc
)
47 GNU_TRIPLET
= $(PARCH
:sparc
=sparcv9-sun
)-solaris
$(SOLARIS_VERSION
)
48 PKG_MACROS
+= GNU_TRIPLET
="$(GNU_TRIPLET)"
50 CONFIGURE_BINDIR
.64 = $(CONFIGURE_PREFIX
)/bin
51 CONFIGURE_LIBDIR
.64 = $(CONFIGURE_PREFIX
)/lib
53 CONFIGURE_OPTIONS
+= --with-diagnostics-urls
=auto-if-env
54 CONFIGURE_OPTIONS
+= --enable-plugins
55 CONFIGURE_OPTIONS
+= --enable-objc-gc
56 CONFIGURE_OPTIONS
+= --disable-libitm
57 CONFIGURE_OPTIONS.sparc
+= --with-mulhigh-size
=2048
58 CONFIGURE_OPTIONS.sparc
+= --with-cpu
=ultrasparc
59 CONFIGURE_OPTIONS.sparc
+= --enable-link-mutex
60 CONFIGURE_OPTIONS
+= --enable-initfini-array
61 CONFIGURE_OPTIONS
+= --enable-__cxa_atexit
62 CONFIGURE_OPTIONS
+= --enable-languages
=c
,c
++,fortran
,go
,lto
,objc
63 CONFIGURE_OPTIONS
+= enable_frame_pointer
=yes
65 # Master test results are different between amd64 and SPARCV9.
66 COMPONENT_TEST_MASTER
= \
67 $(COMPONENT_TEST_RESULTS_DIR
)/results-
$(MACH64
).master
69 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/g
++
70 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/gcc
71 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/gcc-ar
72 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/gcc-nm
73 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/gcc-ranlib
74 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/gccgo
75 PKG_HARDLINKS
+= usr
/gcc
/11/bin
/gfortran
77 # Auto-generated dependencies
78 REQUIRED_PACKAGES
+= compress
/zstd
79 REQUIRED_PACKAGES
+= developer
/gnu-binutils
80 REQUIRED_PACKAGES
+= developer
/linker
81 REQUIRED_PACKAGES
+= library
/gc
82 REQUIRED_PACKAGES
+= shell/ksh93
83 REQUIRED_PACKAGES
+= system
/header
84 REQUIRED_PACKAGES
+= system
/library
85 REQUIRED_PACKAGES
+= system
/library
/c-runtime
86 REQUIRED_PACKAGES
+= system
/library
/math