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 15:20:55 +02:00
committed by GitHub
parent 829ba29a2b
commit 9caa8902b0
2 changed files with 1 additions and 3 deletions
-2
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)
+1 -1
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