]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/Makefile
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / nptl / Makefile
index 5acfdcceff62e0f0b017a26b079efe34a36cbc23..66f89f17f9f295f6f43ed03153fb9d6b64b99bac 100644 (file)
@@ -13,7 +13,7 @@
 
 # You should have received a copy of the GNU Lesser General Public
 # License along with the GNU C Library; if not, see
-# <http://www.gnu.org/licenses/>.
+# <https://www.gnu.org/licenses/>.
 
 #
 #      Sub-makefile for NPTL portion of the library.
@@ -30,7 +30,9 @@ extra-libs-others := $(extra-libs)
 routines = alloca_cutoff forward libc-lowlevellock libc-cancellation \
           libc-cleanup libc_pthread_init libc_multiple_threads \
           register-atfork pthread_atfork pthread_self thrd_current \
-          thrd_equal thrd_sleep thrd_yield
+          thrd_equal thrd_sleep thrd_yield pthread_equal \
+          pthread_attr_destroy pthread_attr_init pthread_attr_getdetachstate \
+          pthread_attr_setdetachstate pthread_attr_getinheritsched
 shared-only-routines = forward
 static-only-routines = pthread_atfork
 
@@ -49,17 +51,13 @@ pthread-compat-wrappers = \
 libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
                      pthread_create pthread_exit pthread_detach \
                      pthread_join pthread_tryjoin pthread_timedjoin \
-                     pthread_join_common \
-                     compat-pthread_self pthread_equal pthread_yield \
+                     pthread_join_common pthread_yield \
                      pthread_getconcurrency pthread_setconcurrency \
                      pthread_getschedparam pthread_setschedparam \
                      pthread_setschedprio \
-                     pthread_attr_init pthread_attr_destroy \
-                     pthread_attr_getdetachstate pthread_attr_setdetachstate \
                      pthread_attr_getguardsize pthread_attr_setguardsize \
                      pthread_attr_getschedparam pthread_attr_setschedparam \
                      pthread_attr_getschedpolicy pthread_attr_setschedpolicy \
-                     pthread_attr_getinheritsched \
                      pthread_attr_setinheritsched \
                      pthread_attr_getscope pthread_attr_setscope \
                      pthread_attr_getstackaddr pthread_attr_setstackaddr \
@@ -76,7 +74,9 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
                      pthread_mutexattr_gettype pthread_mutexattr_settype \
                      pthread_rwlock_init pthread_rwlock_destroy \
                      pthread_rwlock_rdlock pthread_rwlock_timedrdlock \
+                     pthread_rwlock_clockrdlock \
                      pthread_rwlock_wrlock pthread_rwlock_timedwrlock \
+                     pthread_rwlock_clockwrlock \
                      pthread_rwlock_tryrdlock pthread_rwlock_trywrlock \
                      pthread_rwlock_unlock \
                      pthread_rwlockattr_init pthread_rwlockattr_destroy \
@@ -109,19 +109,18 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
                      pthread_once \
                      old_pthread_atfork \
                      pthread_getcpuclockid \
-                     pthread_clock_gettime pthread_clock_settime \
                      shm-directory \
                      sem_init sem_destroy \
                      sem_open sem_close sem_unlink \
                      sem_getvalue \
-                     sem_wait sem_timedwait sem_post \
+                     sem_wait sem_timedwait sem_clockwait sem_post \
                      cleanup cleanup_defer cleanup_compat \
                      cleanup_defer_compat unwind \
                      pt-longjmp pt-cleanup\
                      cancellation \
                      lowlevellock \
                      lll_timedlock_wait \
-                     pt-fork pt-vfork pt-fcntl \
+                     pt-fork pt-fcntl \
                      $(pthread-compat-wrappers) \
                      pt-raise pt-system \
                      flockfile ftrylockfile funlockfile \
@@ -145,7 +144,8 @@ libpthread-routines = nptl-init nptlfreeres vars events version pt-interp \
                      mtx_destroy mtx_init mtx_lock mtx_timedlock \
                      mtx_trylock mtx_unlock call_once cnd_broadcast \
                      cnd_destroy cnd_init cnd_signal cnd_timedwait cnd_wait \
-                     tss_create tss_delete tss_get tss_set pthread_mutex_conf
+                     tss_create tss_delete tss_get tss_set pthread_mutex_conf \
+                     libpthread-compat
 #                    pthread_setuid pthread_seteuid pthread_setreuid \
 #                    pthread_setresuid \
 #                    pthread_setgid pthread_setegid pthread_setregid \
@@ -194,6 +194,7 @@ CFLAGS-pthread_once.c += $(uses-callbacks) -fexceptions \
 CFLAGS-pthread_cond_wait.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sem_wait.c += -fexceptions -fasynchronous-unwind-tables
 CFLAGS-sem_timedwait.c += -fexceptions -fasynchronous-unwind-tables
+CFLAGS-sem_clockwait.c = -fexceptions -fasynchronous-unwind-tables
 
 # These are the function wrappers we have to duplicate here.
 CFLAGS-fcntl.c += -fexceptions -fasynchronous-unwind-tables
@@ -241,7 +242,7 @@ LDLIBS-tst-minstack-throw = -lstdc++
 
 tests = tst-attr1 tst-attr2 tst-attr3 tst-default-attr \
        tst-mutex1 tst-mutex2 tst-mutex3 tst-mutex4 tst-mutex5 tst-mutex6 \
-       tst-mutex7 tst-mutex9 tst-mutex10 tst-mutex5a tst-mutex7a \
+       tst-mutex7 tst-mutex9 tst-mutex10 tst-mutex11 tst-mutex5a tst-mutex7a \
        tst-mutex7robust tst-mutexpi1 tst-mutexpi2 tst-mutexpi3 tst-mutexpi4 \
        tst-mutexpi5 tst-mutexpi5a tst-mutexpi6 tst-mutexpi7 tst-mutexpi7a \
        tst-mutexpi9 \
@@ -250,6 +251,7 @@ tests = tst-attr1 tst-attr2 tst-attr3 tst-default-attr \
        tst-cond8 tst-cond9 tst-cond10 tst-cond11 tst-cond12 tst-cond13 \
        tst-cond14 tst-cond15 tst-cond16 tst-cond17 tst-cond18 tst-cond19 \
        tst-cond20 tst-cond21 tst-cond22 tst-cond23 tst-cond24 tst-cond25 \
+       tst-cond26 tst-cond27 \
        tst-cond-except \
        tst-robust1 tst-robust2 tst-robust3 tst-robust4 tst-robust5 \
        tst-robust6 tst-robust7 tst-robust8 tst-robust9 \
@@ -263,7 +265,7 @@ tests = tst-attr1 tst-attr2 tst-attr3 tst-default-attr \
        tst-key1 tst-key2 tst-key3 tst-key4 \
        tst-sem1 tst-sem2 tst-sem3 tst-sem4 tst-sem5 tst-sem6 tst-sem7 \
        tst-sem8 tst-sem9 tst-sem10 tst-sem14 \
-       tst-sem15 tst-sem16 \
+       tst-sem15 tst-sem16 tst-sem17 \
        tst-barrier1 tst-barrier2 tst-barrier3 tst-barrier4 \
        tst-align tst-align3 \
        tst-basic1 tst-basic2 tst-basic3 tst-basic4 tst-basic5 tst-basic6 \
@@ -273,7 +275,7 @@ tests = tst-attr1 tst-attr2 tst-attr3 tst-default-attr \
        tst-join1 tst-join2 tst-join3 tst-join4 tst-join5 tst-join6 tst-join7 \
        tst-join8 tst-join9 \
        tst-detach1 \
-       tst-eintr1 tst-eintr2 tst-eintr3 tst-eintr4 tst-eintr5 \
+       tst-eintr2 tst-eintr3 tst-eintr4 tst-eintr5 \
        tst-tsd1 tst-tsd2 tst-tsd3 tst-tsd4 tst-tsd5 tst-tsd6 \
        tst-tls1 tst-tls2 \
        tst-fork1 tst-fork2 tst-fork3 tst-fork4 \
@@ -331,6 +333,11 @@ tests-internal := tst-rwlock19 tst-rwlock20 \
 
 xtests = tst-setuid1 tst-setuid1-static tst-setuid2 \
        tst-mutexpp1 tst-mutexpp6 tst-mutexpp10
+
+# This test can run into task limits because of a linux kernel bug
+# and then cause the make process to fail too, see bug 24537.
+xtests += tst-eintr1
+
 test-srcs = tst-oddstacklimit
 
 # Test expected to fail on most targets (except x86_64) due to bug