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/modules | |
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/modules')
-rwxr-xr-x | tests/modules/exec_test | 2 | ||||
-rwxr-xr-x | tests/modules/testmod/GNUmakefile | 3 | ||||
-rwxr-xr-x | tests/modules/testmod2/GNUmakefile | 3 | ||||
-rwxr-xr-x | tests/modules/testmod3/GNUmakefile | 3 |
4 files changed, 7 insertions, 4 deletions
diff --git a/tests/modules/exec_test b/tests/modules/exec_test index d2d606f..a2a6609 100755 --- a/tests/modules/exec_test +++ b/tests/modules/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" diff --git a/tests/modules/testmod/GNUmakefile b/tests/modules/testmod/GNUmakefile index 233f65e..01dbfee 100755 --- a/tests/modules/testmod/GNUmakefile +++ b/tests/modules/testmod/GNUmakefile @@ -10,9 +10,10 @@ INCLUDE_DIRS = \ INCLUDE_CXXFLAGS = \ INCLUDE_LDFLAGS = \ + -L$(TOPDIR)/src INCLUDE_LIBS = \ - $(TOPDIR)/src/libcrawler.a + -lcrawler DYNAMIC_MODULE = \ mod_test.so diff --git a/tests/modules/testmod2/GNUmakefile b/tests/modules/testmod2/GNUmakefile index 3011479..90f1f05 100755 --- a/tests/modules/testmod2/GNUmakefile +++ b/tests/modules/testmod2/GNUmakefile @@ -10,9 +10,10 @@ INCLUDE_DIRS = \ INCLUDE_CXXFLAGS = \ INCLUDE_LDFLAGS = \ + -L$(TOPDIR)/src INCLUDE_LIBS = \ - $(TOPDIR)/src/libcrawler.a + -lcrawler DYNAMIC_MODULE = \ mod_test2.so diff --git a/tests/modules/testmod3/GNUmakefile b/tests/modules/testmod3/GNUmakefile index 4d296de..01ae8eb 100755 --- a/tests/modules/testmod3/GNUmakefile +++ b/tests/modules/testmod3/GNUmakefile @@ -10,9 +10,10 @@ INCLUDE_DIRS = \ INCLUDE_CXXFLAGS = \ INCLUDE_LDFLAGS = \ + -L$(TOPDIR)/src INCLUDE_LIBS = \ - $(TOPDIR)/src/libcrawler.a + -lcrawler DYNAMIC_MODULE = \ mod_test3.so |