Note: GCC is still the default compiler, to use clang do the following: $ BUILDVARS="" ./releasetools/arm_sdimage.sh
25 lines
741 B
Makefile
25 lines
741 B
Makefile
# $NetBSD: Makefile.inc,v 1.11 2015/01/29 20:45:16 joerg Exp $
|
|
|
|
.PATH: ${NETBSDSRCDIR}/sys/lib/libunwind
|
|
|
|
SRCS+= libunwind.cxx \
|
|
unwind_registers.S
|
|
|
|
INCS+= unwind.h
|
|
|
|
COPTS.libunwind.cxx+= ${${ACTIVE_CXX} == "gcc":? -std=c++0x : -std=c++11 }
|
|
COPTS.libunwind.cxx+= -funwind-tables -fno-rtti
|
|
COPTS.libunwind.cxx+= -fno-exceptions -fvisibility=hidden
|
|
COPTS.libunwind.cxx+= -Wno-old-style-cast
|
|
CPPFLAGS.libunwind.cxx+=-I${NETBSDSRCDIR}/sys/lib/libunwind
|
|
|
|
.if ${LIBC_MACHINE_CPU} == "arm"
|
|
AFLAGS.unwind_registers.S+= ${${ACTIVE_CC} == "clang":? -mfpu=vfp3 :}
|
|
.endif
|
|
|
|
.if defined(__MINIX)
|
|
.PATH: ${NETBSDSRCDIR}/sys/lib/libkern/arch/arm
|
|
SRCS+= unwind_stub.c
|
|
CPPFLAGS.unwind_stub.c+=-I${NETBSDSRCDIR}/sys/arch/arm/include
|
|
.endif # defined(__MINIX)
|