# $NetBSD: Makefile,v 1.9.2.1 2023/06/03 14:24:25 martin Exp $ HOSTPROG_CXX= 1 LIBISPRIVATE= yes # For ../Makefile.inc and bsd.own.mk .include LIB= common .include "${.CURDIR}/defs.mk" SRCS= ${G_OBJS-libcommon:S/memory-block.o/memory-block.cc/:.o=.c} # XXX make sure this doesn't have more than it needs CPPFLAGS+= -I${GCCARCH} -I${BACKENDOBJ} -I. \ ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*} \ -DPREFIX=\"/usr\" \ -DDEFAULT_TARGET_VERSION=\"${G_version}\" \ -DDEFAULT_TARGET_MACHINE=\"${MACHINE_GNU_PLATFORM}\" \ -DCONFIGURE_SPECS="\"\"" MKPIC:= no MKPICLIB:= no COPTS.diagnostic.c= -Wno-stack-protector COPTS.intl.c= -Wno-stack-protector version.c: ${GCCARCH}/defs.mk ${TOP}/tools/gcc/gcc-version.mk ${SRCS}: ${GCCARCH}/defs.mk .include # Force using C++ for this HOST_CC:= ${HOST_CXX} CC:= ${CXX} CFLAGS:= ${CXXFLAGS} .PATH: ${DIST}/gcc