mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-10 00:01:20 -05:00
Force link of checksum builder against libhydra/libcharon
This commit is contained in:
parent
3dbc5dfeda
commit
f147b731e0
@ -13,7 +13,8 @@ checksum_builder_LDADD = \
|
|||||||
|
|
||||||
BUILT_SOURCES = checksum.c
|
BUILT_SOURCES = checksum.c
|
||||||
CLEANFILES = 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 \
|
AM_CFLAGS = -rdynamic \
|
||||||
-DS_PLUGINS=\""${s_plugins}\"" -DS_PATH=\""${top_builddir}/src/libstrongswan/plugins\""
|
-DS_PLUGINS=\""${s_plugins}\"" -DS_PATH=\""${top_builddir}/src/libstrongswan/plugins\""
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,8 @@
|
|||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
#include <library.h>
|
#include <library.h>
|
||||||
|
#include <hydra.h>
|
||||||
|
#include <daemon.h>
|
||||||
#include <utils/enumerator.h>
|
#include <utils/enumerator.h>
|
||||||
|
|
||||||
/* we need to fake the pluto symbol to dlopen() the xauth plugin */
|
/* we need to fake the pluto symbol to dlopen() the xauth plugin */
|
||||||
@ -127,6 +129,10 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
/* forces link against libhydra/libcharon */
|
||||||
|
hydra = NULL;
|
||||||
|
charon = NULL;
|
||||||
|
|
||||||
/* avoid confusing leak reports in build process */
|
/* avoid confusing leak reports in build process */
|
||||||
setenv("LEAK_DETECTIVE_DISABLE", "1", 0);
|
setenv("LEAK_DETECTIVE_DISABLE", "1", 0);
|
||||||
library_init(NULL);
|
library_init(NULL);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user