1# $NetBSD: Makefile.common,v 1.8 2014/06/01 19:51:02 mrg Exp $ 2 3DIST= ${GCCDIST} 4GNUHOSTDIST= ${DIST} 5 6GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/} 7 8# Support src/compat builds 9.if defined(MLIBDIR) && exists(${.CURDIR}/../libstdc++-v3/arch/${MLIBDIR}/defs.mk) 10LIBSTDCXX_MACHINE_ARCH=${MLIBDIR} 11.else 12LIBSTDCXX_MACHINE_ARCH=${GCC_MACHINE_ARCH} 13.endif 14 15LIBSTDCXXSRCS= ${G_SRC_SOURCES} ${G_CPP98_SOURCES} ${G_CPP11_SOURCES} 16LIBSUPCXXSRCS= ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES} 17 18CPPFLAGS+= -I${DIST}/gcc 19CPPFLAGS+= -I${DIST}/include 20CPPFLAGS+= -I${DIST}/libstdc++-v3/libsupc++ 21CPPFLAGS+= -I${DIST}/libgcc 22CPPFLAGS+= -I${.CURDIR}/../libstdc++-v3/arch/${LIBSTDCXX_MACHINE_ARCH} -I. 23CPPFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING_H 24 25.if defined(__MINIX) 26CPPFLAGS+= -I${DESTDIR}/usr/include/g++ 27CPPFLAGS+= -I${DESTDIR}/usr/include/gcc-4.8 28.endif #defined(__MINIX) 29 30CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3 31 32.for f in eh_ptr eh_throw guard atexit_thread nested_exception 33COPTS.${f}.cc+= -std=gnu++0x 34.endfor 35