Makefile.inc revision 246706
1# $FreeBSD: head/lib/libc/arm/aeabi/Makefile.inc 246706 2013-02-12 06:04:51Z andrew $
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
10# Add the aeabi_mem* functions. While they live in compiler-rt they call into
11# libc. This causes issues when other parts of libc call these functions.
12# We work around this by including these functions in libc but mark them as
13# hidden so users of libc will not pick up these versions.
14.PATH: ${.CURDIR}/../../contrib/compiler-rt/lib/arm
15
16SRCS+=	aeabi_memcmp.S		\
17	aeabi_memcpy.S		\
18	aeabi_memmove.S		\
19	aeabi_memset.S
20
21# Mark the functions as hidden so they are not available outside of libc.
22CFLAGS.aeabi_memcmp.S=	-DVISIBILITY_HIDDEN
23CFLAGS.aeabi_memcpy.S=	-DVISIBILITY_HIDDEN
24CFLAGS.aeabi_memmove.S=	-DVISIBILITY_HIDDEN
25CFLAGS.aeabi_memset.S=	-DVISIBILITY_HIDDEN
26CFLAGS+=		${CFLAGS.${.IMPSRC:T}}
27
28
29SYM_MAPS+=${.CURDIR}/arm/aeabi/Symbol.map
30
31