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 --- htl/pt-create.c | 2 +- htl/pt-detach.c | 2 +- htl/pt-exit.c | 2 +- htl/pt-join.c | 2 +- htl/pt-self.c | 2 +- htl/pt-setcancelstate.c | 2 +- htl/pt-setcanceltype.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'htl') diff --git a/htl/pt-create.c b/htl/pt-create.c index 090d394f53..f501a12017 100644 --- a/htl/pt-create.c +++ b/htl/pt-create.c @@ -89,7 +89,7 @@ __pthread_create (pthread_t * thread, const pthread_attr_t * attr, return err; } -strong_alias (__pthread_create, pthread_create) +weak_alias (__pthread_create, pthread_create) /* Internal version of pthread_create. See comment in pt-internal.h. */ diff --git a/htl/pt-detach.c b/htl/pt-detach.c index 3d8e3ad0fe..175560667a 100644 --- a/htl/pt-detach.c +++ b/htl/pt-detach.c @@ -77,4 +77,4 @@ __pthread_detach (pthread_t thread) return err; } -strong_alias (__pthread_detach, pthread_detach) +weak_alias (__pthread_detach, pthread_detach) diff --git a/htl/pt-exit.c b/htl/pt-exit.c index 94e3cd9dc0..18c81d3f9c 100644 --- a/htl/pt-exit.c +++ b/htl/pt-exit.c @@ -109,4 +109,4 @@ __pthread_exit (void *status) abort (); } -strong_alias (__pthread_exit, pthread_exit); +weak_alias (__pthread_exit, pthread_exit); diff --git a/htl/pt-join.c b/htl/pt-join.c index ecb79e7c49..0473511be9 100644 --- a/htl/pt-join.c +++ b/htl/pt-join.c @@ -76,4 +76,4 @@ __pthread_join (pthread_t thread, void **status) return err; } -strong_alias (__pthread_join, pthread_join); +weak_alias (__pthread_join, pthread_join); diff --git a/htl/pt-self.c b/htl/pt-self.c index fa38df2b6f..e2bc1b97a5 100644 --- a/htl/pt-self.c +++ b/htl/pt-self.c @@ -30,4 +30,4 @@ __pthread_self (void) return self->thread; } -strong_alias (__pthread_self, pthread_self); +weak_alias (__pthread_self, pthread_self); diff --git a/htl/pt-setcancelstate.c b/htl/pt-setcancelstate.c index 7b5899697d..f23e352d31 100644 --- a/htl/pt-setcancelstate.c +++ b/htl/pt-setcancelstate.c @@ -43,4 +43,4 @@ __pthread_setcancelstate (int state, int *oldstate) return 0; } -strong_alias (__pthread_setcancelstate, pthread_setcancelstate); +weak_alias (__pthread_setcancelstate, pthread_setcancelstate); diff --git a/htl/pt-setcanceltype.c b/htl/pt-setcanceltype.c index 2585d8b463..cf053ce677 100644 --- a/htl/pt-setcanceltype.c +++ b/htl/pt-setcanceltype.c @@ -43,4 +43,4 @@ __pthread_setcanceltype (int type, int *oldtype) return 0; } -strong_alias (__pthread_setcanceltype, pthread_setcanceltype); +weak_alias (__pthread_setcanceltype, pthread_setcanceltype); -- cgit 1.4.1