# $NetBSD: Makefile.common,v 1.9 2016/03/15 06:13:47 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 STD_GNU11= bad_array_length bad_array_new \ eh_aux_runtime eh_ptr eh_terminate eh_throw \ guard atexit_thread nested_exception \ new_handler new_op new_opnt .for _f in ${STD_GNU11} COPTS.${_f}.cc= -std=gnu++11 .endfor STD_GNU14= del_ops del_opvs .for _f in ${STD_GNU14} COPTS.${_f}.cc= -std=gnu++14 -Wno-sized-deallocation .endfor