minix/sys/lib/libunwind/Makefile.inc
Ben Gras 5ae1a533c7 ARM: can build with llvm, switch to EABI
. bitcode fixes
	. switch to compiler-rt instead of netbsd libc functions
	  or libgcc for support functions for both x86 and arm
	. minor build fixes
	. allow  build with llvm without crossbuilding llvm itself
	. can now build minix/arm using llvm and eabi - without C++
	  support for now (hence crossbuilding llvm itself is turned off
	  for minix/arm)

Change-Id: If5c44ef766f5b4fc4394d4586ecc289927a0d6eb
2014-12-12 13:04:56 +01:00

25 lines
615 B
Makefile

# $NetBSD: Makefile.inc,v 1.5 2014/03/19 16:46:23 joerg Exp $
.PATH: ${NETBSDSRCDIR}/sys/lib/libunwind
SRCS+= libunwind.cxx \
unwind_registers.S
.if defined(__MINIX) && (${MACHINE_ARCH} == "earm")
SRCS+= aeabi_unwind.c
.endif
INCS+= unwind.h
.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