]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl_db/Makefile
nptl: Move pthread_attr_setinheritsched implementation into libc.
[thirdparty/glibc.git] / nptl_db / Makefile
index eb3c7e89f0f8e78aa1ce818596765ed0f7e31117..bbe38ca273c8477d788de48a740bcbc6da0d4055 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2002,2003,2009 Free Software Foundation, Inc.
+# Copyright (C) 2002-2019 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
 
 # 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/>.
 
 # Makefile for NPTL debug library subdirectory of GNU C Library.
 
 subdir          := nptl_db
 
+include ../Makeconfig
+
 nptl_db-version = 1.0
 
 extra-libs = libthread_db
 extra-libs-others := $(extra-libs)
 
-headers         = thread_db.h
+headers         = proc_service.h thread_db.h sys/procfs.h
 
 libthread_db-routines = td_init td_log td_ta_new td_ta_delete \
                        td_ta_get_nthreads td_ta_get_ph \
@@ -49,19 +51,13 @@ libthread_db-inhibit-o = $(filter-out .os,$(object-suffixes))
 # The ps_* callback functions are not defined.
 libthread_db.so-no-z-defs = yes
 
-distribute = thread_dbP.h shlib-versions proc_service.h \
-            db_info.c structs.def db-symbols.h db-symbols.awk
-include ../Rules
+tests-special += $(objpfx)db-symbols.out
 
-# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
-# This ensures they will load libc.so for needed symbols if loaded by
-# a statically-linked program that hasn't already loaded it.
-$(objpfx)libthread_db.so: $(common-objpfx)libc.so \
-                         $(common-objpfx)libc_nonshared.a
+include ../Rules
 
-tests: $(objpfx)db-symbols.out
 $(objpfx)db-symbols.out: $(objpfx)db-symbols.v.i \
                         $(common-objpfx)nptl/libpthread.so
-       readelf -W -s $(filter %.so,$^) | $(AWK) -f $< > $@
+       LC_ALL=C $(READELF) -W -s $(filter %.so,$^) | $(AWK) -f $< > $@; \
+       $(evaluate-test)
 
 $(objpfx)db-symbols.v.i: db-symbols.awk