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.
15 USE_PARALLEL_BUILD
= yes
16 include ..
/..
/..
/make-rules
/shared-macros.mk
18 COMPONENT_VERSION
= 12.4.0
19 COMPONENT_SRC
= gcc-releases-gcc-
$(COMPONENT_VERSION
)
20 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
21 COMPONENT_ARCHIVE_URL
= https
://github.com
/gcc-mirror
/gcc
/archive
/releases
/$(COMPONENT_ARCHIVE
)
22 COMPONENT_ARCHIVE_HASH
= \
23 sha256
:e10f8c12756a59c8efe5671ce71d375242f19c6878d0f87f7f3eda008ccb1e2b
27 sha256
:b9df93635b20e4089c29623b19420c4ac848a1b29df1cfd59f26cab0d2666aa0
31 sha256
:ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
35 sha256
:ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb
37 include $(WS_MAKE_RULES
)/gcc-component.mk
39 CC
=/usr
/gcc
/12/bin
/gcc
40 CXX
=/usr
/gcc
/12/bin
/g
++
42 CPPFLAGS
+=" -D_TS_ERRNO"
45 GCC_MAJOR
="$(GCC_COMPONENT_VERSION_MAJOR)"
48 # Workaround platform definition inconsistency
49 ifeq ($(strip $(BUILD_BITS
)),64)
50 PARCH
= $(MACH
:i386
=x86_64-pc
)
52 PARCH
= $(MACH
:i386
=i386-pc
)
54 GNU_TRIPLET
= $(PARCH
:sparc
=sparc-sun
)-solaris
$(SOLARIS_VERSION
)
55 PKG_MACROS
+= GNU_TRIPLET
="$(GNU_TRIPLET)"
57 COMPONENT_PRE_CONFIGURE_ACTION
+= \
58 cd
$(SOURCE_DIR
) && autogen Makefile.def
60 CONFIGURE_BINDIR
.64 = $(CONFIGURE_PREFIX
)/bin
61 CONFIGURE_LIBDIR
.64 = $(CONFIGURE_PREFIX
)/lib
63 CONFIGURE_OPTIONS
+= --with-ld
=$(LD
) --without-gnu-ld
64 CONFIGURE_OPTIONS
+= --with-as
=/usr
/bin
/gas
--with-gnu-as
65 CONFIGURE_OPTIONS
+= --with-build-time-tools
=/usr
/gnu
/${TRIPLETS
[amd64
]}/bin
66 CONFIGURE_OPTIONS
+= --with-build-config
=no
67 CONFIGURE_OPTIONS
+= --enable-languages
=c
,c
++,fortran
,go
,objc
68 # CONFIGURE_OPTIONS+= --with-arch-32=i586
69 CONFIGURE_OPTIONS
+= --enable-shared
70 CONFIGURE_OPTIONS
+= --with-system-zlib
71 CONFIGURE_OPTIONS
+= --enable-plugins
72 CONFIGURE_OPTIONS
+= --enable-__cxa_atexit
73 CONFIGURE_OPTIONS
+= --enable-initfini-array
74 # CONFIGURE_OPTIONS+= --disable-libitm
75 CONFIGURE_OPTIONS
+= --with-diagnostics-urls
=auto-if-env
76 CONFIGURE_OPTIONS
+= enable_frame_pointer
=yes
78 COMPONENT_TEST_ENV
+= LC_ALL
=C.UTF-8
80 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/g
++
81 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/gcc
82 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/gcc-ar
83 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/gcc-nm
84 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/gcc-ranlib
85 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/gccgo
86 PKG_HARDLINKS
+= usr
/gcc
/12/bin
/gfortran
88 # Auto-generated dependencies
89 REQUIRED_PACKAGES
+= compress
/zstd
90 REQUIRED_PACKAGES
+= developer
/gnu-binutils
91 REQUIRED_PACKAGES
+= developer
/linker
92 REQUIRED_PACKAGES
+= library
/zlib
93 REQUIRED_PACKAGES
+= shell/ksh93
94 REQUIRED_PACKAGES
+= system
/header
95 REQUIRED_PACKAGES
+= system
/library
96 REQUIRED_PACKAGES
+= system
/library
/c-runtime
97 REQUIRED_PACKAGES
+= system
/library
/math