Browse Source

Fix build error when libcap-dev is installed (#798)

* Fix build error when libcap-dev is installed

* Revert 829ba29, allowing LDLIBS based fix to work
pull/801/head
Hamish Coleman 3 years ago
committed by GitHub
parent
commit
9caa8902b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Makefile.in
  2. 2
      configure.seed

2
Makefile.in

@ -78,8 +78,6 @@ src/example_sn_embed.o: $(N2N_DEPS)
src/example_edge_embed.o: $(N2N_DEPS) src/example_edge_embed.o: $(N2N_DEPS)
src/edge: $(N2N_LIB) src/edge: $(N2N_LIB)
$(CC) $(CFLAGS) $< $(LDFLAGS) $(N2N_LIB) $(LIBS_EDGE) -o $@
src/supernode: $(N2N_LIB) src/supernode: $(N2N_LIB)
src/example_edge_embed_quick_edge_init: $(N2N_LIB) src/example_edge_embed_quick_edge_init: $(N2N_LIB)
src/example_sn_embed: $(N2N_LIB) src/example_sn_embed: $(N2N_LIB)

2
configure.seed

@ -77,7 +77,7 @@ fi
AC_CHECK_LIB([cap], [cap_get_proc], cap=true) AC_CHECK_LIB([cap], [cap_get_proc], cap=true)
if test x$cap != x; then if test x$cap != x; then
LDFLAGS="${LDFLAGS} -lcap" N2N_LIBS="${N2N_LIBS} -lcap"
AC_DEFINE([HAVE_LIBCAP],[1],[Support for linux capabilities]) AC_DEFINE([HAVE_LIBCAP],[1],[Support for linux capabilities])
fi fi

Loading…
Cancel
Save