]> git.ipfire.org Git - thirdparty/glibc.git/blob - support/Makefile
Fix alignment of TLS variables for tls variant TLS_TCB_AT_TP [BZ #23403]
[thirdparty/glibc.git] / support / Makefile
1 # Makefile for support library, used only at build and test time
2 # Copyright (C) 2016-2018 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
4
5 # The GNU C Library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9
10 # The GNU C Library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with the GNU C Library; if not, see
17 # <http://www.gnu.org/licenses/>.
18
19 subdir := support
20
21 include ../Makeconfig
22
23 extra-libs := libsupport
24 extra-libs-others = $(extra-libs)
25 extra-libs-noinstall := $(extra-libs)
26
27 libsupport-routines = \
28 blob_repeat \
29 check \
30 check_addrinfo \
31 check_dns_packet \
32 check_hostent \
33 check_netent \
34 delayed_exit \
35 ignore_stderr \
36 next_to_fault \
37 oom_error \
38 resolv_test \
39 set_fortify_handler \
40 support-xfstat \
41 support-xstat \
42 support_become_root \
43 support_can_chroot \
44 support_capture_subprocess \
45 support_capture_subprocess_check \
46 support_chroot \
47 support_descriptors \
48 support_enter_mount_namespace \
49 support_enter_network_namespace \
50 support_format_address_family \
51 support_format_addrinfo \
52 support_format_dns_packet \
53 support_format_herrno \
54 support_format_hostent \
55 support_format_netent \
56 support_isolate_in_subprocess \
57 support_openpty \
58 support_quote_blob \
59 support_quote_string \
60 support_record_failure \
61 support_run_diff \
62 support_shared_allocate \
63 support_test_compare_blob \
64 support_test_compare_failure \
65 support_write_file_string \
66 support_test_main \
67 support_test_verify_impl \
68 temp_file \
69 write_message \
70 xaccept \
71 xaccept4 \
72 xasprintf \
73 xbind \
74 xcalloc \
75 xchroot \
76 xclose \
77 xconnect \
78 xdlfcn \
79 xdup2 \
80 xfclose \
81 xfopen \
82 xfork \
83 xftruncate \
84 xgetsockname \
85 xlisten \
86 xlseek \
87 xmalloc \
88 xmemstream \
89 xmkdir \
90 xmmap \
91 xmprotect \
92 xmunmap \
93 xopen \
94 xpipe \
95 xpoll \
96 xposix_memalign \
97 xpthread_attr_destroy \
98 xpthread_attr_init \
99 xpthread_attr_setdetachstate \
100 xpthread_attr_setguardsize \
101 xpthread_attr_setstack \
102 xpthread_attr_setstacksize \
103 xpthread_barrier_destroy \
104 xpthread_barrier_init \
105 xpthread_barrier_wait \
106 xpthread_barrierattr_destroy \
107 xpthread_barrierattr_init \
108 xpthread_barrierattr_setpshared \
109 xpthread_cancel \
110 xpthread_check_return \
111 xpthread_cond_wait \
112 xpthread_create \
113 xpthread_detach \
114 xpthread_join \
115 xpthread_mutex_consistent \
116 xpthread_mutex_destroy \
117 xpthread_mutex_init \
118 xpthread_mutex_lock \
119 xpthread_mutex_unlock \
120 xpthread_mutexattr_destroy \
121 xpthread_mutexattr_init \
122 xpthread_mutexattr_setprotocol \
123 xpthread_mutexattr_setpshared \
124 xpthread_mutexattr_setrobust \
125 xpthread_mutexattr_settype \
126 xpthread_once \
127 xpthread_rwlock_init \
128 xpthread_rwlock_destroy \
129 xpthread_rwlock_rdlock \
130 xpthread_rwlock_unlock \
131 xpthread_rwlock_wrlock \
132 xpthread_rwlockattr_init \
133 xpthread_rwlockattr_setkind_np \
134 xpthread_sigmask \
135 xpthread_spin_lock \
136 xpthread_spin_unlock \
137 xraise \
138 xreadlink \
139 xrealloc \
140 xrecvfrom \
141 xsendto \
142 xsetsockopt \
143 xsigaction \
144 xsignal \
145 xsocket \
146 xstrdup \
147 xstrndup \
148 xsysconf \
149 xunlink \
150 xwaitpid \
151 xwrite \
152
153 libsupport-static-only-routines := $(libsupport-routines)
154 # Only build one variant of the library.
155 libsupport-inhibit-o := .os
156 ifeq ($(build-shared),yes)
157 libsupport-inhibit-o += .o
158 endif
159
160 tests = \
161 README-testing \
162 tst-support-namespace \
163 tst-support_blob_repeat \
164 tst-support_capture_subprocess \
165 tst-support_descriptors \
166 tst-support_format_dns_packet \
167 tst-support_quote_blob \
168 tst-support_quote_string \
169 tst-support_record_failure \
170 tst-test_compare \
171 tst-test_compare_blob \
172 tst-xreadlink \
173
174 ifeq ($(run-built-tests),yes)
175 tests-special = \
176 $(objpfx)tst-support_record_failure-2.out
177
178 $(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
179 $(objpfx)tst-support_record_failure
180 $(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
181 '$(run-program-env)' '$(test-program-prefix-after-env)' \
182 > $@; \
183 $(evaluate-test)
184 endif
185
186 $(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
187
188 include ../Rules