# $NetBSD: Makefile.common,v 1.3 2015/09/23 04:24:16 mrg Exp $ DIST= ${GCCDIST} GNUHOSTDIST= ${DIST} GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/} # Support src/compat builds .if defined(MLIBDIR) && exists(${.CURDIR}/../libstdc++-v3/arch/${MLIBDIR}/defs.mk) LIBSTDCXX_MACHINE_ARCH=${MLIBDIR} .else LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH} .endif LIBSTDCXXSRCS= ${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES} LIBSUPCXXSRCS= ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES} CPPFLAGS+= -I${DIST}/gcc CPPFLAGS+= -I${DIST}/include CPPFLAGS+= -I${DIST}/libstdc++-v3/libsupc++ CPPFLAGS+= -I${DIST}/libgcc CPPFLAGS+= -I${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH} -I. CPPFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING_H CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3 .for f in eh_ptr eh_throw guard atexit_thread nested_exception COPTS.${f}.cc+= -std=gnu++0x .endfor