2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.4 2013/08/23 05:02:46 matt Exp $
|
2012-06-06 15:06:52 +02:00
|
|
|
|
|
|
|
DIST= ${NETBSDSRCDIR}/external/gpl3/gcc/dist
|
|
|
|
GNUHOSTDIST= ${DIST}
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
GCC_MACHINE_ARCH=${MACHINE_ARCH:S/earmv5/earm/}
|
|
|
|
|
2012-06-06 15:06:52 +02:00
|
|
|
LIBSTDCXXSRCS= ${G_SRC_SOURCES}
|
|
|
|
LIBSUPCXXSRCS= ${G_LIBSUPCXX_SOURCES} ${G_LIBSUPCXX_C_SOURCES}
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${DIST}/gcc
|
|
|
|
CPPFLAGS+= -I${DIST}/include
|
|
|
|
CPPFLAGS+= -I${DIST}/libstdc++-v3/libsupc++
|
2013-12-06 12:04:52 +01:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/../libstdc++-v3_4/arch/${GCC_MACHINE_ARCH} -I.
|
2012-06-06 15:06:52 +02:00
|
|
|
CPPFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING_H
|
|
|
|
|
2013-04-24 18:57:59 +02:00
|
|
|
.if defined(__MINIX)
|
|
|
|
CPPFLAGS+= -I${DESTDIR}/usr/include/g++
|
|
|
|
CPPFLAGS+= -I${DESTDIR}/usr/include/gcc-4.5
|
|
|
|
.endif #defined(__MINIX)
|
|
|
|
|
2012-06-06 15:06:52 +02:00
|
|
|
CPPFLAGS.cp-demangle.c=-DIN_GLIBCPP_V3
|
|
|
|
#CPPFLAGS.dyn-string.c=-DIN_GLIBCPP_V3
|
|
|
|
|
|
|
|
#BUILDSYMLINKS+= ${DIST}/libiberty/cp-demangle.c cxa_demangle.c
|