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
This commit is contained in:
Hamish Coleman 2021-09-17 14:20:55 +01:00 committed by GitHub
parent 829ba29a2b
commit 9caa8902b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

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

View File

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