glibc/sysdeps/htl/Makefile
Samuel Thibault 25c084e0a7 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.
2020-01-04 19:37:53 +01:00

12 lines
224 B
Makefile

ifeq ($(subdir),htl)
libpthread-sysdep_routines += errno-loc
endif
ifeq ($(subdir),rt)
librt-sysdep_routines += timer_routines
endif
ifeq ($(subdir),posix)
CFLAGS-confstr.c += -DLIBPTHREAD_VERSION='"HTL $(version)"'
endif