Some assembly files need to compiled -marm since they are Thumb compatible.

This commit is contained in:
matt 2013-08-20 21:43:03 +00:00
parent afb7a3b050
commit 9a5bd26b35

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.19 2013/08/12 23:22:12 matt Exp $
# $NetBSD: Makefile.inc,v 1.20 2013/08/20 21:43:03 matt Exp $
SRCS+= byte_swap_2.S byte_swap_4.S
SRCS+= ffs.S
@ -9,5 +9,17 @@ SRCS+= modsi3.S umodsi3.S
.if !empty(MACHINE_ARCH:Mearm*)
SRCS+= __aeabi_ldivmod.S __aeabi_uldivmod.S __aeabi_lcmp.c __aeabi_ulcmp.c
SRCS+= unwind_stub.c
.else
.endif
.if empty(MACHINE_ARCH:Mearmv7*)
CPUFLAGS.ffs.S+= -marm
.endif
CPUFLAGS.divide.S+= -marm
CPUFLAGS.memcmp.S+= -marm
CPUFLAGS.memcpy.S+= -marm
CPUFLAGS.memmove.S+= -marm
CPUFLAGS.memset.S+= -marm
.if empty(CPPFLAGS:M-D_STANDALONE)
CPUFLAGS.strcpy.S+= -marm
CPUFLAGS.strlcpy.S+= -marm
CPUFLAGS.strncpy.S+= -marm
.endif