Move arm from ports to libc.
[glibc.git] / sysdeps / unix / sysv / linux / arm / Makefile
blobaa7526a25872c5e2012099d2f19283e687a3971f
1 ifeq ($(subdir),csu)
2 # In order for unwinding to fail when it falls out of main, we need a
3 # cantunwind marker. There's one in start.S. To make sure we reach it, add
4 # unwind tables for __libc_start_main.
5 CFLAGS-libc-start.c += -fexceptions
7 sysdep_routines += aeabi_read_tp libc-aeabi_read_tp
8 static-only-routines += aeabi_read_tp
9 shared-only-routines += libc-aeabi_read_tp
10 endif
12 ifeq ($(subdir),elf)
13 sysdep-rtld-routines += aeabi_read_tp libc-do-syscall
14 endif
16 ifeq ($(subdir),misc)
17 sysdep_routines += ioperm
18 sysdep_headers += sys/elf.h sys/io.h
19 endif
21 ifeq ($(subdir),signal)
22 sysdep_routines += sigrestorer
23 endif
25 ifeq ($(subdir),resource)
26 sysdep_routines += oldgetrlimit64
27 endif
29 ifeq ($(subdir),stdlib)
30 gen-as-const-headers += ucontext_i.sym
31 endif
33 # Add a syscall function to each library that needs one.
35 ifeq ($(subdir),crypt)
36 libcrypt-sysdep_routines += libc-do-syscall
37 endif
39 ifeq ($(subdir),rt)
40 librt-sysdep_routines += libc-do-syscall
41 librt-shared-only-routines += libc-do-syscall
42 endif
44 ifeq ($(subdir),nptl)
45 libpthread-sysdep_routines += libc-do-syscall
46 libpthread-shared-only-routines += libc-do-syscall
47 endif
49 ifeq ($(subdir),resolv)
50 libanl-sysdep_routines += libc-do-syscall
51 libanl-shared-only-routines += libc-do-syscall
52 endif
54 ifeq ($(subdir),csu)
55 sysdep_routines += libc-do-syscall
56 endif
58 ifeq ($(subdir),nscd)
59 nscd-modules += libc-do-syscall
60 endif
62 ifeq ($(subdir),nss)
63 libnss_db-sysdep_routines += libc-do-syscall
64 libnss_db-shared-only-routines += libc-do-syscall
65 endif
67 ifeq ($(subdir),posix)
68 LDFLAGS-tst-rfc3484 += $(common-objpfx)csu/libc-do-syscall.o
69 LDFLAGS-tst-rfc3484-2 += $(common-objpfx)csu/libc-do-syscall.o
70 LDFLAGS-tst-rfc3484-3 += $(common-objpfx)csu/libc-do-syscall.o
71 endif
73 abi-variants := soft hard
75 ifeq (,$(filter $(default-abi),$(abi-variants)))
76 Unknown ABI, must be one of $(abi-variants)
77 endif
79 abi-includes :=
80 abi-soft-options := -U__ARM_PCS_VFP
81 abi-soft-condition := !defined __ARM_PCS_VFP
82 abi-soft-ld-soname := ld-linux.so.3
83 abi-hard-options := -D__ARM_PCS_VFP
84 abi-hard-condition := defined __ARM_PCS_VFP
85 abi-hard-ld-soname := ld-linux-armhf.so.3