@@ -20,19 +20,20 @@ EXTRACT_ONLY= ${DEFAULT_DISTFILES}
20
20
CHECK_PIE_SUPPORTED = no
21
21
CHECK_RELRO_SUPPORTED = no
22
22
23
- # We really need gcc10-aux as bootstrap compiler only.
24
- # Although gcc6-aux can no longer be used for this.
25
- TOOL_DEPENDS+ = gcc10-aux-[0-9]*:../../lang/gcc10-aux
26
-
23
+ USE_LANGUAGES = c c++ ada
27
24
USE_TOOLS+ = gmake makeinfo sed perl flex bison
28
25
USE_TOOLS.NetBSD+ = gsed
29
26
# Built-in Texinfo can no longer process GCC 15's files
30
27
TEXINFO_REQD+ = 7.0
31
28
BISON_REQD+ = 3.5
32
29
30
+ INFO_FILES = yes
33
31
GNU_CONFIGURE = yes
34
32
GNU_CONFIGURE_STRICT = no
35
33
34
+ USE_PKGSRC_GCC = yes
35
+ GCC_REQD+ = 10
36
+
36
37
UNLIMIT_RESOURCES+ = datasize
37
38
UNLIMIT_RESOURCES+ = stacksize
38
39
@@ -55,24 +56,19 @@ BROKEN_ON_PLATFORM= *-*-i386
55
56
56
57
.include "../../mk/bsd.prefs.mk"
57
58
58
- .include "options.mk"
59
-
60
- BOOTC_BASE = ${PREFIX}/gcc10-aux
61
- BOOTC_LD_LIBRARY_PATH = ${BOOTC_BASE}/lib:${BOOTC_BASE}/lib/gcc/${MACHINE_GNU_PLATFORM}/10.3.0:${BOOTC_BASE}/lib/gcc/${MACHINE_GNU_PLATFORM}/10.3.0/adalib
62
-
63
- CONFIGURE_ENV+ = CC_FOR_BUILD=${BOOTC_BASE}/bin/gcc
64
- CONFIGURE_ENV+ = CXX_FOR_BUILD=${BOOTC_BASE}/bin/g++
65
-
66
- MAKE_ENV+ = LD_LIBRARY_PATH=${BOOTC_LD_LIBRARY_PATH:Q}
67
-
68
59
# # Build outside ${WRKSRC}
69
60
OBJDIR = ${WRKDIR}/build
70
61
CONFIGURE_DIRS = ${OBJDIR}
71
62
CONFIGURE_SCRIPT = ${WRKSRC}/configure
72
63
GCC_SUBPREFIX = ${GCC_PKGNAME}
73
64
GCC_PREFIX = ${PREFIX}/${GCC_SUBPREFIX}
74
65
GNU_CONFIGURE_PREFIX = ${GCC_PREFIX}
75
- INFO_FILES = yes
66
+
67
+ .include "options.mk"
68
+
69
+ # CONFIGURE_ENV+= CC_FOR_BUILD=${BOOTC_BASE}/bin/gcc
70
+ # CONFIGURE_ENV+= CXX_FOR_BUILD=${BOOTC_BASE}/bin/g++
71
+
76
72
CONFIGURE_ARGS+ = --disable-libstdcxx-pch
77
73
78
74
STAGE1_LDFLAGS = ${LDFLAGS} -static
@@ -233,6 +229,12 @@ CTF_FILES_SKIP+= */gengtype # CPU limit exceeded
233
229
TEST_TARGET = -j ${MAKE_JOBS} -k check || ${TRUE}
234
230
TEST_DEPENDS+ = dejagnu-[0-9]*:../../devel/dejagnu
235
231
232
+ .include "../../archivers/zstd/buildlink3.mk"
233
+ CONFIGURE_ARGS+ = --with-zstd=${BUILDLINK_PREFIX.zstd}
234
+
235
+ .include "../../mk/dlopen.buildlink3.mk"
236
+ .include "../../mk/pthread.buildlink3.mk"
237
+
236
238
pre-configure :
237
239
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
238
240
@@ -256,13 +258,4 @@ GENERATE_PLIST+= \
256
258
cd ${DESTDIR}${PREFIX} && \
257
259
${FIND} ${GCC_SUBPREFIX} \( -type f -or -type l \) -print | ${SORT};
258
260
259
- .include "../../archivers/zstd/buildlink3.mk"
260
- CONFIGURE_ARGS+ = --with-zstd=${BUILDLINK_PREFIX.zstd}
261
-
262
- .include "../../mk/dlopen.buildlink3.mk"
263
- .include "../../mk/pthread.buildlink3.mk"
264
-
265
261
.include "../../mk/bsd.pkg.mk"
266
-
267
- # This should be here so we ensure that bootstrap compiler is at the beginning of the list
268
- PREPEND_PATH+ = ${BOOTC_BASE}/bin
0 commit comments