From 25c084e0a7b5e8d604d0f86b55f343acadf7af5d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 4 Jan 2020 19:37:53 +0100 Subject: htl: Add __errno_location and __h_errno_location As explained on https://sourceware.org/ml/libc-alpha/2020-01/msg00049.html the presence of __errno_location in libpthread.so on GNU/Linux makes libpthread getting linked in for libstdc++. This aligns on that behavior, to avoid issues that only GNU/Hurd would get. --- sysdeps/htl/Makefile | 4 ++++ sysdeps/mach/hurd/i386/libpthread.abilist | 2 ++ 2 files changed, 6 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/htl/Makefile b/sysdeps/htl/Makefile index 12bb54e..ef156f1 100644 --- a/sysdeps/htl/Makefile +++ b/sysdeps/htl/Makefile @@ -1,3 +1,7 @@ +ifeq ($(subdir),htl) +libpthread-sysdep_routines += errno-loc +endif + ifeq ($(subdir),rt) librt-sysdep_routines += timer_routines endif diff --git a/sysdeps/mach/hurd/i386/libpthread.abilist b/sysdeps/mach/hurd/i386/libpthread.abilist index 4c7d06d..0ede908 100644 --- a/sysdeps/mach/hurd/i386/libpthread.abilist +++ b/sysdeps/mach/hurd/i386/libpthread.abilist @@ -145,5 +145,7 @@ GLIBC_2.12 sem_wait F GLIBC_2.2.6 _IO_flockfile F GLIBC_2.2.6 _IO_ftrylockfile F GLIBC_2.2.6 _IO_funlockfile F +GLIBC_2.2.6 __errno_location F +GLIBC_2.2.6 __h_errno_location F GLIBC_2.21 pthread_hurd_cond_timedwait_np F GLIBC_2.21 pthread_hurd_cond_wait_np F -- cgit v1.1