2014-05-12 15:17:14 +02:00
|
|
|
# $NetBSD: Makefile.inc,v 1.5 2014/03/19 16:46:23 joerg Exp $
|
2013-12-07 19:53:33 +01:00
|
|
|
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/lib/libunwind
|
|
|
|
|
|
|
|
SRCS+= libunwind.cxx \
|
|
|
|
unwind_registers.S
|
|
|
|
|
|
|
|
INCS+= unwind.h
|
|
|
|
|
2014-05-12 15:17:14 +02:00
|
|
|
.if ${HAVE_GCC:U48} == "4"
|
|
|
|
CLEANFILES+= cstdint
|
|
|
|
DPSRCS+= cstdint
|
|
|
|
|
|
|
|
cstdint:
|
|
|
|
echo '#include <stdint.h>' > ${.TARGET}
|
|
|
|
|
|
|
|
COPTS.libunwind.cxx+= "-D__builtin_unreachable()=abort()"
|
|
|
|
.else
|
|
|
|
COPTS.libunwind.cxx+= ${${ACTIVE_CXX} == "gcc":? -std=c++0x : -std=c++11 }
|
|
|
|
.endif
|
|
|
|
COPTS.libunwind.cxx+= -funwind-tables -fno-rtti -fno-exceptions -fvisibility=hidden -Wno-old-style-cast
|