pull -DHAVE_CC_TLS out of $(INTERNAL_CFLAGS) if it is there, and add

it to CPPFLAGS.

this fixes PR#53567 for me.
This commit is contained in:
mrg 2018-09-05 00:51:42 +00:00
parent 8d0a685795
commit 7ef108d600

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.36 2018/07/14 23:40:19 christos Exp $
# $NetBSD: Makefile.inc,v 1.37 2018/09/05 00:51:42 mrg Exp $
LIBGCC_MACHINE_ARCH?=${MACHINE_ARCH:S/earmv5/earm/}
@ -28,6 +28,7 @@ CPPFLAGS+= -I${DIST}/libgcc/config/i386
CPPFLAGS+= -I${DIST}/libgcc/config/${LIBGCC_MACHINE_ARCH}
.endif
CPPFLAGS+= -I${DIST}/gcc -I${DIST}/include -I.
CPPFLAGS+= ${G_INTERNAL_CFLAGS:M-DHAVE_CC_TLS}
.if ${LIBGCC_MACHINE_ARCH} == "powerpc" || \
${LIBGCC_MACHINE_ARCH} == "sh3el" || \