From 63b7491b2bf70cd69947e55e0fc1b268a311e504 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 2 Sep 2003 00:17:01 +0000 Subject: Make it easier to disable lib debugging (mainly for when testing with glibc). --- test/dlopen/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/dlopen/Makefile b/test/dlopen/Makefile index 8ac46503e..529f08a08 100644 --- a/test/dlopen/Makefile +++ b/test/dlopen/Makefile @@ -19,6 +19,8 @@ TESTDIR=../ include $(TESTDIR)/Rules.mak +DEBUG_LIBS=X +#DEBUG_LIBS=LD_DEBUG all: run @@ -58,15 +60,15 @@ libtest3.so: libtest.c run: libtest2.so libtest1.so test1 test2 test3 dltest libtest.so dltest2 libtest3.so @echo "----------running test 1--------------" - -LD_LIBRARY_PATH=`pwd`:. LD_DEBUG=all ./test1 + -LD_LIBRARY_PATH=`pwd`:. $(DEBUG_LIBS)=all ./test1 @echo "----------running test 2--------------" - -LD_LIBRARY_PATH=`pwd`:. LD_DEBUG=all ./test2 + -LD_LIBRARY_PATH=`pwd`:. $(DEBUG_LIBS)=all ./test2 @echo "----------running test 3--------------" - -LD_LIBRARY_PATH=`pwd`:. LD_DEBUG=all ./test3 + -LD_LIBRARY_PATH=`pwd`:. $(DEBUG_LIBS)=all ./test3 @echo "----------running test 3--------------" - -LD_DEBUG=all ./dltest2 + -$(DEBUG_LIBS)=all ./dltest2 @echo "----------running test 4--------------" - -LD_DEBUG=all ./dltest + -$(DEBUG_LIBS)=all ./dltest clean: rm -f *.o libtest1.so* libtest2.so* test1 test2 test3 \ -- cgit v1.2.3