about summary refs log tree commit diff
path: root/nptl_db/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2009-02-28 02:26:51 +0000
committerRoland McGrath <roland@gnu.org>2009-02-28 02:26:51 +0000
commite965d5147e216ceb4157ad478cd271af96866e77 (patch)
tree7b1fadba2e158c0b428475c5dae5bf49d26c6327 /nptl_db/Makefile
parent8744841f9ab79b725d37395d6f4057a92bdc9953 (diff)
downloadglibc-e965d5147e216ceb4157ad478cd271af96866e77.tar.gz
glibc-e965d5147e216ceb4157ad478cd271af96866e77.tar.xz
glibc-e965d5147e216ceb4157ad478cd271af96866e77.zip
* Makeconfig (%.v.i): Depend on Makeconfig.
	Exclude % lines from initial #-comment removal.
Diffstat (limited to 'nptl_db/Makefile')
-rw-r--r--nptl_db/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/nptl_db/Makefile b/nptl_db/Makefile
index 5c73ff28f2..af542dcac9 100644
--- a/nptl_db/Makefile
+++ b/nptl_db/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2002,2003,2009 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
@@ -50,7 +50,8 @@ 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
+distribute = thread_dbP.h shlib-versions proc_service.h \
+	     db_info.c structs.def db-symbols.h db-symbols.awk
 include ../Rules
 
 # Depend on libc.so so a DT_NEEDED is generated in the shared objects.
@@ -58,3 +59,10 @@ include ../Rules
 # a statically-linked program that hasn't already loaded it.
 $(objpfx)libthread_db.so: $(common-objpfx)libc.so \
 			  $(common-objpfx)libc_nonshared.a
+
+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 $< > $@
+
+$(objpfx)db-symbols.v.i: db-symbols.awk