Makefile.inc revision 266314
1# $FreeBSD: stable/10/lib/libc/arm/aeabi/Makefile.inc 266314 2014-05-17 14:22:37Z ian $
2
3.PATH: ${.CURDIR}/arm/aeabi
4
5SRCS+=	aeabi_atexit.c		\
6	aeabi_double.c		\
7	aeabi_float.c		\
8	aeabi_unwind_cpp.c
9.if ${MACHINE_ARCH:Marmv6*}
10SRCS+=	aeabi_vfp_double.S	\
11	aeabi_vfp_float.S
12.endif
13
14# Add the aeabi_mem* functions. While they live in compiler-rt they call into
15# libc. This causes issues when other parts of libc call these functions.
16# We work around this by including these functions in libc but mark them as
17# hidden so users of libc will not pick up these versions.
18.PATH: ${.CURDIR}/../../contrib/compiler-rt/lib/arm
19
20SRCS+=	aeabi_memcmp.S		\
21	aeabi_memcpy.S		\
22	aeabi_memmove.S		\
23	aeabi_memset.S
24
25# Mark the functions as hidden so they are not available outside of libc.
26CFLAGS.aeabi_memcmp.S=	-DVISIBILITY_HIDDEN
27CFLAGS.aeabi_memcpy.S=	-DVISIBILITY_HIDDEN
28CFLAGS.aeabi_memmove.S=	-DVISIBILITY_HIDDEN
29CFLAGS.aeabi_memset.S=	-DVISIBILITY_HIDDEN
30CFLAGS+=		${CFLAGS.${.IMPSRC:T}}
31
32
33SYM_MAPS+=${.CURDIR}/arm/aeabi/Symbol.map
34
35