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