mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-24 03:31:07 +00:00
5a82c74822
Also, change sources.redhat.com to sourceware.org. This patch was automatically generated by running the following shell script, which uses GNU sed, and which avoids modifying files imported from upstream: sed -ri ' s,(http|ftp)(://(.*\.)?(gnu|fsf|sourceware)\.org($|[^.]|\.[^a-z])),https\2,g s,(http|ftp)(://(.*\.)?)sources\.redhat\.com($|[^.]|\.[^a-z]),https\2sourceware.org\4,g ' \ $(find $(git ls-files) -prune -type f \ ! -name '*.po' \ ! -name 'ChangeLog*' \ ! -path COPYING ! -path COPYING.LIB \ ! -path manual/fdl-1.3.texi ! -path manual/lgpl-2.1.texi \ ! -path manual/texinfo.tex ! -path scripts/config.guess \ ! -path scripts/config.sub ! -path scripts/install-sh \ ! -path scripts/mkinstalldirs ! -path scripts/move-if-change \ ! -path INSTALL ! -path locale/programs/charmap-kw.h \ ! -path po/libc.pot ! -path sysdeps/gnu/errlist.c \ ! '(' -name configure \ -execdir test -f configure.ac -o -f configure.in ';' ')' \ ! '(' -name preconfigure \ -execdir test -f preconfigure.ac ';' ')' \ -print) and then by running 'make dist-prepare' to regenerate files built from the altered files, and then executing the following to cleanup: chmod a+x sysdeps/unix/sysv/linux/riscv/configure # Omit irrelevant whitespace and comment-only changes, # perhaps from a slightly-different Autoconf version. git checkout -f \ sysdeps/csky/configure \ sysdeps/hppa/configure \ sysdeps/riscv/configure \ sysdeps/unix/sysv/linux/csky/configure # Omit changes that caused a pre-commit check to fail like this: # remote: *** error: sysdeps/powerpc/powerpc64/ppc-mcount.S: trailing lines git checkout -f \ sysdeps/powerpc/powerpc64/ppc-mcount.S \ sysdeps/unix/sysv/linux/s390/s390-64/syscall.S # Omit change that caused a pre-commit check to fail like this: # remote: *** error: sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: last line does not end in newline git checkout -f sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S
248 lines
6.0 KiB
Makefile
248 lines
6.0 KiB
Makefile
# Makefile for support library, used only at build and test time
|
|
# Copyright (C) 2016-2019 Free Software Foundation, Inc.
|
|
# This file is part of the GNU C Library.
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2.1 of the License, or (at your option) any later version.
|
|
|
|
# The GNU C Library is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
# Lesser General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with the GNU C Library; if not, see
|
|
# <https://www.gnu.org/licenses/>.
|
|
|
|
subdir := support
|
|
|
|
include ../Makeconfig
|
|
|
|
extra-libs := libsupport
|
|
extra-libs-others = $(extra-libs)
|
|
extra-libs-noinstall := $(extra-libs)
|
|
|
|
libsupport-routines = \
|
|
blob_repeat \
|
|
check \
|
|
check_addrinfo \
|
|
check_dns_packet \
|
|
check_hostent \
|
|
check_netent \
|
|
delayed_exit \
|
|
ignore_stderr \
|
|
next_to_fault \
|
|
oom_error \
|
|
resolv_test \
|
|
set_fortify_handler \
|
|
support-xfstat \
|
|
support-xstat \
|
|
support_become_root \
|
|
support_can_chroot \
|
|
support_capture_subprocess \
|
|
support_capture_subprocess_check \
|
|
support_chroot \
|
|
support_copy_file_range \
|
|
support_descriptor_supports_holes \
|
|
support_descriptors \
|
|
support_enter_mount_namespace \
|
|
support_enter_network_namespace \
|
|
support_format_address_family \
|
|
support_format_addrinfo \
|
|
support_format_dns_packet \
|
|
support_format_herrno \
|
|
support_format_hostent \
|
|
support_format_netent \
|
|
support_isolate_in_subprocess \
|
|
support_openpty \
|
|
support_paths \
|
|
support_quote_blob \
|
|
support_quote_string \
|
|
support_record_failure \
|
|
support_run_diff \
|
|
support_shared_allocate \
|
|
support_subprocess \
|
|
support_test_compare_blob \
|
|
support_test_compare_failure \
|
|
support_test_compare_string \
|
|
support_write_file_string \
|
|
support_test_main \
|
|
support_test_verify_impl \
|
|
temp_file \
|
|
timespec \
|
|
timespec-add \
|
|
timespec-sub \
|
|
write_message \
|
|
xaccept \
|
|
xaccept4 \
|
|
xasprintf \
|
|
xbind \
|
|
xcalloc \
|
|
xchroot \
|
|
xclock_gettime \
|
|
xclose \
|
|
xconnect \
|
|
xcopy_file_range \
|
|
xdlfcn \
|
|
xdlmopen \
|
|
xdup2 \
|
|
xfclose \
|
|
xfopen \
|
|
xfork \
|
|
xftruncate \
|
|
xgetsockname \
|
|
xlisten \
|
|
xlseek \
|
|
xmalloc \
|
|
xmemstream \
|
|
xmkdir \
|
|
xmkdirp \
|
|
xmmap \
|
|
xmprotect \
|
|
xmunmap \
|
|
xopen \
|
|
xpipe \
|
|
xpoll \
|
|
xposix_memalign \
|
|
xpthread_attr_destroy \
|
|
xpthread_attr_init \
|
|
xpthread_attr_setdetachstate \
|
|
xpthread_attr_setguardsize \
|
|
xpthread_attr_setstack \
|
|
xpthread_attr_setstacksize \
|
|
xpthread_barrier_destroy \
|
|
xpthread_barrier_init \
|
|
xpthread_barrier_wait \
|
|
xpthread_barrierattr_destroy \
|
|
xpthread_barrierattr_init \
|
|
xpthread_barrierattr_setpshared \
|
|
xpthread_cancel \
|
|
xpthread_check_return \
|
|
xpthread_cond_wait \
|
|
xpthread_create \
|
|
xpthread_detach \
|
|
xpthread_join \
|
|
xpthread_mutex_consistent \
|
|
xpthread_mutex_destroy \
|
|
xpthread_mutex_init \
|
|
xpthread_mutex_lock \
|
|
xpthread_mutex_unlock \
|
|
xpthread_mutexattr_destroy \
|
|
xpthread_mutexattr_init \
|
|
xpthread_mutexattr_setprotocol \
|
|
xpthread_mutexattr_setpshared \
|
|
xpthread_mutexattr_setrobust \
|
|
xpthread_mutexattr_settype \
|
|
xpthread_once \
|
|
xpthread_rwlock_init \
|
|
xpthread_rwlock_destroy \
|
|
xpthread_rwlock_rdlock \
|
|
xpthread_rwlock_unlock \
|
|
xpthread_rwlock_wrlock \
|
|
xpthread_rwlockattr_init \
|
|
xpthread_rwlockattr_setkind_np \
|
|
xpthread_sigmask \
|
|
xpthread_spin_lock \
|
|
xpthread_spin_unlock \
|
|
xraise \
|
|
xreadlink \
|
|
xrealloc \
|
|
xrecvfrom \
|
|
xsendto \
|
|
xsetsockopt \
|
|
xsigaction \
|
|
xsignal \
|
|
xsigstack \
|
|
xsocket \
|
|
xposix_spawn \
|
|
xposix_spawn_file_actions_addclose \
|
|
xposix_spawn_file_actions_adddup2 \
|
|
xstrdup \
|
|
xstrndup \
|
|
xsymlink \
|
|
xsysconf \
|
|
xunlink \
|
|
xwaitpid \
|
|
xwrite \
|
|
|
|
libsupport-static-only-routines := $(libsupport-routines)
|
|
# Only build one variant of the library.
|
|
libsupport-inhibit-o := .os
|
|
ifeq ($(build-shared),yes)
|
|
libsupport-inhibit-o += .o
|
|
endif
|
|
|
|
CFLAGS-support_paths.c = \
|
|
-DSRCDIR_PATH=\"`cd .. ; pwd`\" \
|
|
-DOBJDIR_PATH=\"`cd $(objpfx)/..; pwd`\" \
|
|
-DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
|
|
-DINSTDIR_PATH=\"$(prefix)\" \
|
|
-DLIBDIR_PATH=\"$(libdir)\" \
|
|
-DBINDIR_PATH=\"$(bindir)\" \
|
|
-DSBINDIR_PATH=\"$(sbindir)\" \
|
|
-DROOTSBINDIR_PATH=\"$(rootsbindir)\"
|
|
|
|
ifeq (,$(CXX))
|
|
LINKS_DSO_PROGRAM = links-dso-program-c
|
|
else
|
|
LINKS_DSO_PROGRAM = links-dso-program
|
|
LDLIBS-links-dso-program = -lstdc++ -lgcc -lgcc_s $(libunwind)
|
|
endif
|
|
|
|
ifeq (yes,$(have-selinux))
|
|
LDLIBS-$(LINKS_DSO_PROGRAM) += -lselinux
|
|
endif
|
|
|
|
|
|
LDLIBS-test-container = $(libsupport)
|
|
|
|
others += test-container
|
|
others-noinstall += test-container
|
|
|
|
others += shell-container echo-container true-container
|
|
others-noinstall += shell-container echo-container true-container
|
|
|
|
others += $(LINKS_DSO_PROGRAM)
|
|
others-noinstall += $(LINKS_DSO_PROGRAM)
|
|
|
|
$(objpfx)test-container : $(libsupport)
|
|
$(objpfx)shell-container : $(libsupport)
|
|
$(objpfx)echo-container : $(libsupport)
|
|
$(objpfx)true-container : $(libsupport)
|
|
|
|
tests = \
|
|
README-testing \
|
|
tst-support-namespace \
|
|
tst-support_blob_repeat \
|
|
tst-support_capture_subprocess \
|
|
tst-support_descriptors \
|
|
tst-support_format_dns_packet \
|
|
tst-support_quote_blob \
|
|
tst-support_quote_string \
|
|
tst-support_record_failure \
|
|
tst-test_compare \
|
|
tst-test_compare_blob \
|
|
tst-test_compare_string \
|
|
tst-xreadlink \
|
|
tst-xsigstack \
|
|
|
|
ifeq ($(run-built-tests),yes)
|
|
tests-special = \
|
|
$(objpfx)tst-support_record_failure-2.out
|
|
|
|
$(objpfx)tst-support_record_failure-2.out: tst-support_record_failure-2.sh \
|
|
$(objpfx)tst-support_record_failure
|
|
$(SHELL) $< $(common-objpfx) '$(test-program-prefix-before-env)' \
|
|
'$(run-program-env)' '$(test-program-prefix-after-env)' \
|
|
> $@; \
|
|
$(evaluate-test)
|
|
endif
|
|
|
|
$(objpfx)tst-support_format_dns_packet: $(common-objpfx)resolv/libresolv.so
|
|
|
|
tst-support_capture_subprocess-ARGS = -- $(host-test-program-cmd)
|
|
|
|
include ../Rules
|