commit | author | age
|
198eaa
|
1 |
# |
AW |
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 |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
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. |
|
16 |
# |
|
17 |
|
|
18 |
include ../../../make-rules/shared-macros.mk |
|
19 |
|
4aca53
|
20 |
COMPONENT_VERSION= 11.4.0 |
069573
|
21 |
COMPONENT_REVISION= 1 |
198eaa
|
22 |
COMPONENT_SRC= gcc-releases-gcc-$(COMPONENT_VERSION) |
AW |
23 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz |
|
24 |
COMPONENT_ARCHIVE_URL= https://github.com/gcc-mirror/gcc/archive/releases/$(COMPONENT_ARCHIVE) |
4aca53
|
25 |
COMPONENT_ARCHIVE_HASH= sha256:aab0f644ae9dc169c80fb2fe0f63baf4d9b147a1db4bdbcba3ec530afcb6a601 |
198eaa
|
26 |
|
4aca53
|
27 |
MPFR_VERSION=4.2.0 |
AW |
28 |
MPFR_ARCHIVE_HASH= sha256:691db39178e36fc460c046591e4b0f2a52c8f2b3ee6d750cc2eab25f1eaa999d |
198eaa
|
29 |
|
4aca53
|
30 |
MPC_VERSION=1.3.1 |
AW |
31 |
MPC_ARCHIVE_HASH= sha256:ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8 |
198eaa
|
32 |
|
AW |
33 |
GMP_VERSION=6.2.1 |
|
34 |
GMP_ARCHIVE_HASH= sha256:eae9326beb4158c386e39a356818031bd28f3124cf915f8c5b1dc4c7a36b4d7c |
|
35 |
|
|
36 |
include $(WS_MAKE_RULES)/gcc-component.mk |
|
37 |
|
|
38 |
GCC_MAJOR="$(GCC_COMPONENT_VERSION_MAJOR)" |
|
39 |
PKG_VARS += GCC_MAJOR |
|
40 |
|
|
41 |
# Workaround platform definition inconsistency |
|
42 |
ifeq ($(strip $(BUILD_BITS)),64) |
|
43 |
PARCH = $(MACH:i386=x86_64-pc) |
|
44 |
else |
|
45 |
PARCH = $(MACH:i386=i386-pc) |
|
46 |
endif |
f59cf5
|
47 |
GNU_TRIPLET = $(PARCH:sparc=sparcv9-sun)-solaris$(SOLARIS_VERSION) |
198eaa
|
48 |
PKG_MACROS += GNU_TRIPLET="$(GNU_TRIPLET)" |
AW |
49 |
|
|
50 |
CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
|
51 |
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib |
|
52 |
|
|
53 |
CONFIGURE_OPTIONS+= --with-diagnostics-urls=auto-if-env |
|
54 |
CONFIGURE_OPTIONS+= --enable-plugins |
|
55 |
CONFIGURE_OPTIONS+= --enable-objc-gc |
069573
|
56 |
CONFIGURE_OPTIONS.i386+= --disable-libitm |
f59cf5
|
57 |
CONFIGURE_OPTIONS.sparc+= --with-mulhigh-size=2048 |
069573
|
58 |
CONFIGURE_OPTIONS.sparc+= --with-cpu=ultrasparc |
f59cf5
|
59 |
CONFIGURE_OPTIONS.sparc+= --enable-link-mutex |
K |
60 |
CONFIGURE_OPTIONS+= --enable-initfini-array |
b30abb
|
61 |
CONFIGURE_OPTIONS+= --enable-languages=c,c++,fortran,go,lto,objc |
198eaa
|
62 |
CONFIGURE_OPTIONS+= enable_frame_pointer=yes |
f59cf5
|
63 |
|
K |
64 |
# Master test results are different between amd64 and SPARCV9. |
|
65 |
COMPONENT_TEST_MASTER = \ |
|
66 |
$(COMPONENT_TEST_RESULTS_DIR)/results-$(MACH64).master |
198eaa
|
67 |
|
a6af4f
|
68 |
PKG_HARDLINKS += usr/gcc/11/bin/g++ |
MT |
69 |
PKG_HARDLINKS += usr/gcc/11/bin/gcc |
|
70 |
PKG_HARDLINKS += usr/gcc/11/bin/gcc-ar |
|
71 |
PKG_HARDLINKS += usr/gcc/11/bin/gcc-nm |
|
72 |
PKG_HARDLINKS += usr/gcc/11/bin/gcc-ranlib |
b30abb
|
73 |
PKG_HARDLINKS += usr/gcc/11/bin/gccgo |
a6af4f
|
74 |
PKG_HARDLINKS += usr/gcc/11/bin/gfortran |
MT |
75 |
|
198eaa
|
76 |
# Auto-generated dependencies |
AW |
77 |
REQUIRED_PACKAGES += compress/zstd |
a6af4f
|
78 |
REQUIRED_PACKAGES += developer/gnu-binutils |
MT |
79 |
REQUIRED_PACKAGES += developer/linker |
198eaa
|
80 |
REQUIRED_PACKAGES += library/gc |
AW |
81 |
REQUIRED_PACKAGES += shell/ksh93 |
a6af4f
|
82 |
REQUIRED_PACKAGES += system/header |
198eaa
|
83 |
REQUIRED_PACKAGES += system/library |
f59cf5
|
84 |
REQUIRED_PACKAGES += system/library/c-runtime |
a6af4f
|
85 |
REQUIRED_PACKAGES += system/library/math |