From 9caa8902b025397f6b2fb976c7831fb85fe524d3 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Fri, 17 Sep 2021 14:20:55 +0100 Subject: [PATCH] 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 --- Makefile.in | 2 -- configure.seed | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 49b7281..df60bb0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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) diff --git a/configure.seed b/configure.seed index 60b5b45..5c65650 100644 --- a/configure.seed +++ b/configure.seed @@ -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