diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-09-02 13:07:14 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-09-02 13:07:14 +0200 |
commit | 13da385aa7f5e9a9f52288fd7735d6dc806fab73 (patch) | |
tree | 15095ef90056092c59042da092a7ff330920223e /tests/logger | |
parent | da6dc57663d8934f84d6328c9d5d15b06962991e (diff) | |
download | crawler-13da385aa7f5e9a9f52288fd7735d6dc806fab73.tar.gz crawler-13da385aa7f5e9a9f52288fd7735d6dc806fab73.tar.bz2 |
prefer dynamic to static linking (linking a non-PIC .a library
into a module is illegal, but on Linux!)
Diffstat (limited to 'tests/logger')
-rwxr-xr-x | tests/logger/GNUmakefile | 5 | ||||
-rwxr-xr-x | tests/logger/exec_test | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/logger/GNUmakefile b/tests/logger/GNUmakefile index b0e2db0..ebd447d 100755 --- a/tests/logger/GNUmakefile +++ b/tests/logger/GNUmakefile @@ -5,10 +5,11 @@ SUBDIRS = INCLUDE_DIRS = \ -I. -I$(TOPDIR)/src -INCLUDE_LDFLAGS = +INCLUDE_LDFLAGS = \ + -L$(TOPDIR)/src INCLUDE_LIBS = \ - $(TOPDIR)/src/libcrawler.a + -lcrawler TEST_CPP_BINS = \ test1$(EXE) diff --git a/tests/logger/exec_test b/tests/logger/exec_test index d2d606f..a2a6609 100755 --- a/tests/logger/exec_test +++ b/tests/logger/exec_test @@ -4,5 +4,5 @@ BINARY=$1 TITLE=$2 printf "$BINARY: $TITLE .. " -./$BINARY >$BINARY.RES 2>&1 +LD_LIBRARY_PATH=../../src ./$BINARY >$BINARY.RES 2>&1 diff $BINARY.MUST $BINARY.RES > $BINARY.DIFF && printf "OK\n" || printf "ERROR\n" |