summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-12 20:40:53 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-12 20:40:53 +0000
commitd6e6ee0202f8705a30b10b53eb259a2d62ece466 (patch)
treef3a3f194b2dc1c3af6adb91fac103ef304379d26 /test
parentdd5db8b9f54ccfc62cf74f6acfba8b73db3c5977 (diff)
Use uClibc's ldd, not the system one which is probably broken
anyways. This ensures correct answers, and prevents all the annoying segfaults from the system ldd. -Erik
Diffstat (limited to 'test')
-rw-r--r--test/Rules.mak1
-rw-r--r--test/silly/Makefile4
-rw-r--r--test/stat/Makefile4
-rw-r--r--test/stdlib/Makefile16
-rw-r--r--test/termios/Makefile4
5 files changed, 15 insertions, 14 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index 63a8b2b95..aba4f38c0 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -17,6 +17,7 @@ NATIVE_ARCH = $(shell uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
CC = ../$(TESTDIR)extra/gcc-uClibc/$(NATIVE_ARCH)-uclibc-gcc
HOST_CC = gcc
STRIPTOOL=strip
+LDD = ../$(TESTDIR)ldso/util/ldd
# Check if 'ls -sh' works or not
diff --git a/test/silly/Makefile b/test/silly/Makefile
index e94d67515..fb343ff1a 100644
--- a/test/silly/Makefile
+++ b/test/silly/Makefile
@@ -23,7 +23,7 @@ hello: hello.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -36,7 +36,7 @@ hello_glibc: hello.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
diff --git a/test/stat/Makefile b/test/stat/Makefile
index 2247f283f..90c189ad2 100644
--- a/test/stat/Makefile
+++ b/test/stat/Makefile
@@ -23,7 +23,7 @@ stat: stat.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -36,7 +36,7 @@ stat_glibc: stat.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
diff --git a/test/stdlib/Makefile b/test/stdlib/Makefile
index f551880f7..061933e03 100644
--- a/test/stdlib/Makefile
+++ b/test/stdlib/Makefile
@@ -25,7 +25,7 @@ testmalloc: testmalloc.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -38,7 +38,7 @@ testmalloc_glibc: testmalloc.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -51,7 +51,7 @@ mallocbug: mallocbug.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -64,7 +64,7 @@ mallocbug_glibc: mallocbug.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -84,7 +84,7 @@ teststrtol: teststrtol.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -sh $@
-./$@ > $@.out
-@ echo " "
@@ -97,7 +97,7 @@ teststrtol_glibc: teststrtol.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -sh $@
-./$@ > $@.out
-@ echo " "
@@ -118,7 +118,7 @@ qsort: qsort.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@ > $@.out
-@ echo " "
@@ -131,7 +131,7 @@ qsort_glibc: qsort.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -sh $@
-./$@ > $@.out
-@ echo " "
diff --git a/test/termios/Makefile b/test/termios/Makefile
index 930cbdca3..bbd99e476 100644
--- a/test/termios/Makefile
+++ b/test/termios/Makefile
@@ -15,7 +15,7 @@ termios: termios.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak $(CC)
$(CC) $(CFLAGS) -c $< -o $@.o
$(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "
@@ -28,7 +28,7 @@ termios_glibc: termios.c Makefile
$(HOST_CC) $(GLIBC_CFLAGS) -c $< -o $@.o
$(HOST_CC) $(GLIBC_LDFLAGS) $@.o -o $@
$(STRIPTOOL) -x -R .note -R .comment $@
- -ldd $@
+ -$(LDD) $@
ls -l $@
-./$@
-@ echo " "