-fix crash observed on FreeBSD
[oweals/gnunet.git] / src / scalarproduct / Makefile.am
index 11a9373786148678ff2073e0ba81381875e687e3..a92e684f4cd2d13754e43097292e260ab3dbe743 100644 (file)
@@ -29,6 +29,7 @@ gnunet_scalarproduct_SOURCES = \
 gnunet_scalarproduct_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/scalarproduct/libgnunetscalarproduct.la \
+  $(LIBGCRYPT_LIBS) \
   -lgcrypt \
   $(GN_LIBINTL)
 gnunet_scalarproduct_DEPENDENCIES = \
@@ -38,8 +39,9 @@ gnunet_service_scalarproduct_SOURCES = \
   gnunet-service-scalarproduct.c
 gnunet_service_scalarproduct_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
-  $(top_builddir)/src/mesh/libgnunetmesh.la \
+  $(top_builddir)/src/cadet/libgnunetcadet.la \
   $(top_builddir)/src/set/libgnunetset.la \
+  $(LIBGCRYPT_LIBS) \
   -lgcrypt \
   $(GN_LIBINTL)
 
@@ -49,6 +51,7 @@ libgnunetscalarproduct_la_SOURCES = \
 libgnunetscalarproduct_la_LIBADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
   $(top_builddir)/src/statistics/libgnunetstatistics.la \
+  $(LIBGCRYPT_LIBS) \
   -lgcrypt \
   $(LTLIBINTL)
 libgnunetscalarproduct_la_LDFLAGS = \
@@ -64,5 +67,6 @@ check_SCRIPTS = \
   test_scalarproduct_negativezero.sh
 
 if ENABLE_TEST_RUN
-  TESTS = $(check_SCRIPTS)
+  AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
+#  TESTS = $(check_SCRIPTS)
 endif