diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-07 11:56:16 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-07 11:56:16 +0200 |
commit | 9dfe4aa8f2fe2fc93479e4b806aafc0cdd76f650 (patch) | |
tree | 70930568daa261300e31baca29e08a75955a7076 /src/modules | |
parent | d61420eab67f2acab8ea6e3b51a4e763a3259569 (diff) | |
download | crawler-9dfe4aa8f2fe2fc93479e4b806aafc0cdd76f650.tar.gz crawler-9dfe4aa8f2fe2fc93479e4b806aafc0cdd76f650.tar.bz2 |
allow modules to be linked as static libraries, mainly to be able to
use valgrind for leak-checking
Diffstat (limited to 'src/modules')
4 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/urlnormalizer/googleurl/GNUmakefile b/src/modules/urlnormalizer/googleurl/GNUmakefile index 6c5283f..9b86a52 100644 --- a/src/modules/urlnormalizer/googleurl/GNUmakefile +++ b/src/modules/urlnormalizer/googleurl/GNUmakefile @@ -20,6 +20,9 @@ INCLUDE_LIBS = \ DYNAMIC_MODULE = \ mod_urlnormalizer_googleurl.so +STATIC_LIB = \ + libgoogleurlnormalizer.a + CPP_OBJS = \ GoogleURLNormalizer.o diff --git a/src/modules/urlnormalizer/simpleurl/GNUmakefile b/src/modules/urlnormalizer/simpleurl/GNUmakefile index 46f0e27..d91d94d 100644 --- a/src/modules/urlnormalizer/simpleurl/GNUmakefile +++ b/src/modules/urlnormalizer/simpleurl/GNUmakefile @@ -17,6 +17,9 @@ INCLUDE_LIBS = \ DYNAMIC_MODULE = \ mod_urlnormalizer_simple.so +STATIC_LIB = \ + libsimpleurlnormalizer.a + CPP_OBJS = \ SimpleURLNormalizer.o diff --git a/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp b/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp index 7e7d1ac..414adf1 100644 --- a/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp +++ b/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp @@ -7,12 +7,10 @@ using namespace std; SimpleURLNormalizer::SimpleURLNormalizer( ) { - test = malloc(10); } SimpleURLNormalizer::~SimpleURLNormalizer( ) { - free( test ); } URL SimpleURLNormalizer::parseUrl( const string s ) diff --git a/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.hpp b/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.hpp index 1b1de60..5bd454c 100644 --- a/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.hpp +++ b/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.hpp @@ -16,8 +16,6 @@ class SimpleURLNormalizer : public URLNormalizer { private: void normalizePath( std::string &path ); - - void *test; }; DECLARE_MODULE( URLNormalizer ) |