From fba7fc5a21f5c56e4878228d2311d040e5b84653 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 10 Feb 2020 23:45:23 +0000 Subject: htl C11 threads: Avoid pthread_ symbols visibility in static library --- sysdeps/mach/hurd/htl/pt-mutex-destroy.c | 2 +- sysdeps/mach/hurd/htl/pt-mutex-init.c | 2 +- sysdeps/mach/hurd/htl/pt-mutex-lock.c | 2 +- sysdeps/mach/hurd/htl/pt-mutex-timedlock.c | 2 +- sysdeps/mach/hurd/htl/pt-mutex-trylock.c | 2 +- sysdeps/mach/hurd/htl/pt-mutex-unlock.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sysdeps/mach/hurd/htl') diff --git a/sysdeps/mach/hurd/htl/pt-mutex-destroy.c b/sysdeps/mach/hurd/htl/pt-mutex-destroy.c index a5bfaddcb2..b1f68fe504 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-destroy.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-destroy.c @@ -34,5 +34,5 @@ __pthread_mutex_destroy (pthread_mutex_t *mtxp) return 0; } -strong_alias (__pthread_mutex_destroy, pthread_mutex_destroy) +weak_alias (__pthread_mutex_destroy, pthread_mutex_destroy) hidden_def (__pthread_mutex_destroy) diff --git a/sysdeps/mach/hurd/htl/pt-mutex-init.c b/sysdeps/mach/hurd/htl/pt-mutex-init.c index 7a2cc462f3..af052c493e 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-init.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-init.c @@ -55,5 +55,5 @@ __pthread_mutex_init (pthread_mutex_t *mtxp, const pthread_mutexattr_t *attrp) return 0; } -strong_alias (__pthread_mutex_init, pthread_mutex_init) +weak_alias (__pthread_mutex_init, pthread_mutex_init) hidden_def (__pthread_mutex_init) diff --git a/sysdeps/mach/hurd/htl/pt-mutex-lock.c b/sysdeps/mach/hurd/htl/pt-mutex-lock.c index 6d334a2977..22510701d8 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-lock.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-lock.c @@ -77,4 +77,4 @@ __pthread_mutex_lock (pthread_mutex_t *mtxp) } strong_alias (__pthread_mutex_lock, _pthread_mutex_lock) -strong_alias (__pthread_mutex_lock, pthread_mutex_lock) +weak_alias (__pthread_mutex_lock, pthread_mutex_lock) diff --git a/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c b/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c index 3aa7d798b2..b11bfc87c8 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-timedlock.c @@ -76,5 +76,5 @@ __pthread_mutex_timedlock (pthread_mutex_t *mtxp, const struct timespec *tsp) return ret; } -strong_alias (__pthread_mutex_timedlock, pthread_mutex_timedlock) +weak_alias (__pthread_mutex_timedlock, pthread_mutex_timedlock) hidden_def (__pthread_mutex_timedlock) diff --git a/sysdeps/mach/hurd/htl/pt-mutex-trylock.c b/sysdeps/mach/hurd/htl/pt-mutex-trylock.c index 5708caf096..f883ec3f30 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-trylock.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-trylock.c @@ -81,4 +81,4 @@ __pthread_mutex_trylock (pthread_mutex_t *mtxp) } strong_alias (__pthread_mutex_trylock, _pthread_mutex_trylock) -strong_alias (__pthread_mutex_trylock, pthread_mutex_trylock) +weak_alias (__pthread_mutex_trylock, pthread_mutex_trylock) diff --git a/sysdeps/mach/hurd/htl/pt-mutex-unlock.c b/sysdeps/mach/hurd/htl/pt-mutex-unlock.c index 4b99a710f1..aabe9eafbb 100644 --- a/sysdeps/mach/hurd/htl/pt-mutex-unlock.c +++ b/sysdeps/mach/hurd/htl/pt-mutex-unlock.c @@ -88,4 +88,4 @@ __pthread_mutex_unlock (pthread_mutex_t *mtxp) } strong_alias (__pthread_mutex_unlock, _pthread_mutex_unlock) -strong_alias (__pthread_mutex_unlock, pthread_mutex_unlock) +weak_alias (__pthread_mutex_unlock, pthread_mutex_unlock) -- cgit 1.4.1