Skip to content

Commit c7def6b

Browse files
fix which files -DIN_GCC_FRONTEND is applied to
1 parent 1e2031f commit c7def6b

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

external/gpl3/gcc/usr.bin/Makefile.frontend

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# $NetBSD: Makefile.frontend,v 1.7 2019/10/24 18:48:43 christos Exp $
1+
# $NetBSD: Makefile.frontend,v 1.8 2026/01/18 08:51:07 mrg Exp $
22

33
BINDIR= /usr/bin
44

55
CPPFLAGS+= -I${GCCARCH} -I${FRONTENDOBJ} \
6-
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \
7-
-DIN_GCC_FRONTEND
6+
${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
87

98
NOCTF= # defined
109
.include <bsd.init.mk>

external/gpl3/gcc/usr.bin/Makefile.inc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile.inc,v 1.42 2025/10/20 14:31:37 nat Exp $
1+
# $NetBSD: Makefile.inc,v 1.43 2026/01/18 08:51:07 mrg Exp $
22

33
.ifndef _EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_
44
_EXTERNAL_GPL3_GCC_USR_BIN_MAKEFILE_INC_=1
@@ -78,6 +78,10 @@ CPPFLAGS+= -DNO_SHARED_LIBGCC_MULTILIB
7878
.endif
7979
.endif
8080

81+
.for _f in ${G_ALL_HOST_FRONTEND_OBJS:.o=.cc}
82+
COPTS.${_f}+= -DIN_GCC_FRONTEND
83+
.endfor
84+
8185
NOCLANGERROR= # defined
8286

8387
WARNS=1

0 commit comments

Comments
 (0)