Link libcharon to checksum_builder in order to get rid of the fake symbols.
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 16:54:07 +0000 (17:54 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 16:54:07 +0000 (17:54 +0100)
src/checksum/Makefile.am
src/checksum/checksum_builder.c

index aaa60b4..8c27d7d 100644 (file)
@@ -5,7 +5,10 @@ nodist_libchecksum_la_SOURCES = checksum.c
 libchecksum_la_LDFLAGS = -module -avoid-version
 
 checksum_builder_SOURCES = checksum_builder.c
-checksum_builder_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la $(DLLIB)
+checksum_builder_LDADD = \
+       $(top_builddir)/src/libstrongswan/libstrongswan.la \
+       $(top_builddir)/src/libcharon/libcharon.la \
+       $(DLLIB)
 
 BUILT_SOURCES = checksum.c
 CLEANFILES = checksum.c
index be57f1d..d550bbe 100644 (file)
 
 #include <library.h>
 
-/* we need to fake some charon symbols to dlopen() its plugins */
-void *charon, *eap_type_names, *auth_class_names, *protocol_id_names,
-*action_names, *ipsec_mode_names, *ike_sa_state_names, *child_sa_state_names,
-*policy_dir_names, *ipcomp_transform_names, *debug_names, *controller_cb_empty;
-
 int main(int argc, char* argv[])
 {
        int i;