[PATCH 2/2] nptl_test: sysdep headers re-factoring

Carmelo AMOROSO carmelo.amoroso at st.com
Thu Jan 7 14:08:48 UTC 2010


Update nptl and tls Makefiles according to new sysdep headers structure

Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>
---
 test/nptl/Makefile    |    1 +
 test/nptl/Makefile.in |    3 +++
 test/tls/Makefile     |    3 ++-
 test/tls/Makefile.in  |    6 +++++-
 4 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/test/nptl/Makefile b/test/nptl/Makefile
index a99c5d1..c22b635 100644
--- a/test/nptl/Makefile
+++ b/test/nptl/Makefile
@@ -2,6 +2,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
diff --git a/test/nptl/Makefile.in b/test/nptl/Makefile.in
index c6d832b..6f71d12 100644
--- a/test/nptl/Makefile.in
+++ b/test/nptl/Makefile.in
@@ -53,8 +53,11 @@ GLIBC_TESTS_DISABLED := tst-eintr1_glibc tst-eintr2_glibc \
 
 
 PTDIR := $(top_builddir)libpthread/nptl
+SYSDEPS_DIR := $(top_srcdir)libc/sysdeps
 
 EXTRA_CFLAGS := -DNOT_IN_libc=1 -D_LIBC -D__USE_GNU -std=gnu99 \
+	-I$(SYSDEPS_DIR)/linux \
+	-I$(SYSDEPS_DIR)/linux/$(TARGET_ARCH) \
 	-I$(PTDIR) -I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)	\
 	-I$(PTDIR)/sysdeps/$(TARGET_ARCH)				\
 	-I$(PTDIR)/sysdeps/unix/sysv/linux				\
diff --git a/test/tls/Makefile b/test/tls/Makefile
index a99c5d1..607fec2 100644
--- a/test/tls/Makefile
+++ b/test/tls/Makefile
@@ -1,7 +1,8 @@
-# uClibc NPTL tests
+# uClibc TLS tests
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 
 top_builddir=../../
+top_srcdir=../../
 include ../Rules.mak
 -include Makefile.in
 include ../Test.mak
diff --git a/test/tls/Makefile.in b/test/tls/Makefile.in
index 69a8eaf..121215c 100644
--- a/test/tls/Makefile.in
+++ b/test/tls/Makefile.in
@@ -12,9 +12,13 @@ GLIBC_TESTS_DISABLED := $(addsuffix _glibc,$(filter-out $(TESTS_DISABLED),$(TEST
 
 
 PTDIR := $(top_builddir)libpthread/nptl
+SYSDEPS_DIR := $(top_srcdir)libc/sysdeps
 
 EXTRA_CFLAGS := -DNOT_IN_libc=1 \
-	-std=gnu99 -I. -I$(PTDIR)				\
+	-std=gnu99 -I. \
+	-I$(SYSDEPS_DIR)/linux \
+	-I$(SYSDEPS_DIR)/linux/$(TARGET_ARCH) \
+	-I$(PTDIR)	\
 	-I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)	\
 	-I$(PTDIR)/sysdeps/$(TARGET_ARCH)			\
 	-I$(PTDIR)/sysdeps/unix/sysv/linux			\
-- 
1.6.0.6



More information about the uClibc mailing list