nptl: Add missing __pthread_cond_wait alias in static builds
authorFlorian Weimer <fweimer@redhat.com>
Wed, 19 May 2021 20:16:26 +0000 (22:16 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 19 May 2021 20:16:28 +0000 (22:16 +0200)
Fixes commit cf3fff1c195f859ba949a7ad86d4fca70bd99740 ("nptl: Move
cnd_wait into libc").

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
nptl/pthread_cond_wait.c

index 54e504a6b5ef92411514c0c62e3ef7b7bef3f97d..409a99ecb7932a1329f361a29457d434d48b145e 100644 (file)
@@ -622,6 +622,9 @@ ___pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
 versioned_symbol (libc, ___pthread_cond_wait, pthread_cond_wait,
                  GLIBC_2_3_2);
 libc_hidden_ver (___pthread_cond_wait, __pthread_cond_wait)
+#ifndef SHARED
+strong_alias (___pthread_cond_wait, __pthread_cond_wait)
+#endif
 
 /* See __pthread_cond_wait_common.  */
 int