Skip to content

Commit fa7f445

Browse files
committed
gcc15-gnat: enable nls, bootstrap gcc detection reversed
1 parent 0c335d2 commit fa7f445

File tree

4 files changed

+4179
-35
lines changed

4 files changed

+4179
-35
lines changed

gcc15-gnat/Makefile

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,20 @@ EXTRACT_ONLY= ${DEFAULT_DISTFILES}
2020
CHECK_PIE_SUPPORTED= no
2121
CHECK_RELRO_SUPPORTED= no
2222

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
2724
USE_TOOLS+= gmake makeinfo sed perl flex bison
2825
USE_TOOLS.NetBSD+= gsed
2926
# Built-in Texinfo can no longer process GCC 15's files
3027
TEXINFO_REQD+= 7.0
3128
BISON_REQD+= 3.5
3229

30+
INFO_FILES= yes
3331
GNU_CONFIGURE= yes
3432
GNU_CONFIGURE_STRICT= no
3533

34+
USE_PKGSRC_GCC= yes
35+
GCC_REQD+= 10
36+
3637
UNLIMIT_RESOURCES+= datasize
3738
UNLIMIT_RESOURCES+= stacksize
3839

@@ -55,24 +56,19 @@ BROKEN_ON_PLATFORM= *-*-i386
5556

5657
.include "../../mk/bsd.prefs.mk"
5758

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-
6859
## Build outside ${WRKSRC}
6960
OBJDIR= ${WRKDIR}/build
7061
CONFIGURE_DIRS= ${OBJDIR}
7162
CONFIGURE_SCRIPT= ${WRKSRC}/configure
7263
GCC_SUBPREFIX= ${GCC_PKGNAME}
7364
GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX}
7465
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+
7672
CONFIGURE_ARGS+= --disable-libstdcxx-pch
7773

7874
STAGE1_LDFLAGS= ${LDFLAGS} -static
@@ -233,6 +229,12 @@ CTF_FILES_SKIP+= */gengtype # CPU limit exceeded
233229
TEST_TARGET= -j ${MAKE_JOBS} -k check || ${TRUE}
234230
TEST_DEPENDS+= dejagnu-[0-9]*:../../devel/dejagnu
235231

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+
236238
pre-configure:
237239
${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
238240

@@ -256,13 +258,4 @@ GENERATE_PLIST+= \
256258
cd ${DESTDIR}${PREFIX} && \
257259
${FIND} ${GCC_SUBPREFIX} \( -type f -or -type l \) -print | ${SORT};
258260

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-
265261
.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

Comments
 (0)