Obsolete golang-120
[oi-userland.git] / components / developer / gcc-13 / Makefile
blobd5d7fb22f1a41aa9f192ea36dba133c2698e926c
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.
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
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_VERSION= 13.3.0
20 COMPONENT_REVISION= 1
21 COMPONENT_SRC= gcc-releases-gcc-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
23 COMPONENT_ARCHIVE_URL= https://github.com/gcc-mirror/gcc/archive/releases/$(COMPONENT_ARCHIVE)
24 COMPONENT_ARCHIVE_HASH= \
25 sha256:bdc80b99f448888bbf33d0432039391634a7210e7c6d014658856ded0347c731
27 MPFR_VERSION=4.2.1
28 MPFR_ARCHIVE_HASH= \
29 sha256:b9df93635b20e4089c29623b19420c4ac848a1b29df1cfd59f26cab0d2666aa0
31 MPC_VERSION=1.3.1
32 MPC_ARCHIVE_HASH= \
33 sha256:ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8
35 GMP_VERSION=6.3.0
36 GMP_ARCHIVE_HASH= \
37 sha256:ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb
39 include $(WS_MAKE_RULES)/gcc-component.mk
41 CPPFLAGS+=" -D_TS_ERRNO"
42 LDFLAGS="-R$OPT/lib"
44 COMPONENT_PRE_CONFIGURE_ACTION += \
45 cd $(SOURCE_DIR) && autogen Makefile.def
47 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
48 CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
50 CONFIGURE_OPTIONS+= --with-ld=$(LD) --without-gnu-ld
51 CONFIGURE_OPTIONS+= --with-as=/usr/bin/gas --with-gnu-as
52 CONFIGURE_OPTIONS+= --with-build-time-tools=/usr/gnu/${TRIPLETS[amd64]}/bin
53 CONFIGURE_OPTIONS+= --with-build-config=no
54 CONFIGURE_OPTIONS+= --enable-languages=c,c++,fortran,go,objc
55 # CONFIGURE_OPTIONS+= --with-arch-32=i586
56 CONFIGURE_OPTIONS+= --enable-shared
57 CONFIGURE_OPTIONS+= --with-system-zlib
58 CONFIGURE_OPTIONS+= --enable-plugins
59 CONFIGURE_OPTIONS+= --enable-__cxa_atexit
60 CONFIGURE_OPTIONS+= --enable-initfini-array
61 # CONFIGURE_OPTIONS+= --disable-libitm
62 CONFIGURE_OPTIONS+= --with-diagnostics-urls=auto-if-env
63 CONFIGURE_OPTIONS+= enable_frame_pointer=yes
65 COMPONENT_TEST_ENV += LC_ALL=C.UTF-8
67 PKG_HARDLINKS += usr/gcc/13/bin/g++
68 PKG_HARDLINKS += usr/gcc/13/bin/gcc
69 PKG_HARDLINKS += usr/gcc/13/bin/gcc-ar
70 PKG_HARDLINKS += usr/gcc/13/bin/gcc-nm
71 PKG_HARDLINKS += usr/gcc/13/bin/gcc-ranlib
72 PKG_HARDLINKS += usr/gcc/13/bin/gccgo
73 PKG_HARDLINKS += usr/gcc/13/bin/gfortran
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += compress/zstd
77 REQUIRED_PACKAGES += developer/gnu-binutils
78 REQUIRED_PACKAGES += developer/linker
79 REQUIRED_PACKAGES += library/zlib
80 REQUIRED_PACKAGES += shell/ksh93
81 REQUIRED_PACKAGES += system/header
82 REQUIRED_PACKAGES += system/library
83 REQUIRED_PACKAGES += system/library/c-runtime
84 REQUIRED_PACKAGES += system/library/math