Force link of checksum builder against libhydra/libcharon

This commit is contained in:
Martin Willi 2011-05-25 10:38:31 +02:00
parent 3dbc5dfeda
commit f147b731e0
2 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,8 @@ checksum_builder_LDADD = \
BUILT_SOURCES = checksum.c
CLEANFILES = checksum.c
INCLUDES = -I$(top_srcdir)/src/libstrongswan
INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra \
-I$(top_srcdir)/src/libcharon
AM_CFLAGS = -rdynamic \
-DS_PLUGINS=\""${s_plugins}\"" -DS_PATH=\""${top_builddir}/src/libstrongswan/plugins\""

View File

@ -19,6 +19,8 @@
#include <dlfcn.h>
#include <library.h>
#include <hydra.h>
#include <daemon.h>
#include <utils/enumerator.h>
/* we need to fake the pluto symbol to dlopen() the xauth plugin */
@ -127,6 +129,10 @@ int main(int argc, char* argv[])
{
int i;
/* forces link against libhydra/libcharon */
hydra = NULL;
charon = NULL;
/* avoid confusing leak reports in build process */
setenv("LEAK_DETECTIVE_DISABLE", "1", 0);
library_init(NULL);