path: root/rpc/rpc-lib
diff options
authorKaleb S. KEITHLEY <>2019-03-21 01:21:13 -0400
committerNiels de Vos <>2019-03-26 11:31:45 +0000
commita87038229e26723406e48035519f0e6dfea4e45c (patch)
treec9abfd6d2a2375f403d0dba3933edd1529fe7b6e /rpc/rpc-lib
parentc9408e1bbfc4e2a85080bc6410bd2c9cdf259534 (diff)
build: link libgfrpc with MATH_LIB (libm, -lm)
tl;dnr: calls log2(3) from libm; it should be explicitly linked with -lm the autoconf/automake/libtool stack is more or less forgiving on different distributions. On forgiving systems libtool will semi- magically link with implicit dependencies. But on Ubuntu, which seems to be tending toward being less forgiving, the link of libgfrpc will fail with an unresolved referencee to log2(3). Change-Id: I9fae09ddb81e49004fbea4d7d83b95fb64a484b0 updates: bz#1193929 Signed-off-by: Kaleb S. KEITHLEY <>
Diffstat (limited to 'rpc/rpc-lib')
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/ b/rpc/rpc-lib/src/
index 81a96476883..c7171a260b5 100644
--- a/rpc/rpc-lib/src/
+++ b/rpc/rpc-lib/src/
@@ -8,7 +8,7 @@ libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
EXTRA_DIST = libgfrpc.sym
libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/ \
- $(top_builddir)/rpc/xdr/src/
+ $(top_builddir)/rpc/xdr/src/ $(MATH_LIB)
libgfrpc_la_LDFLAGS = -version-info $(LIBGFRPC_LT_VERSION) $(GF_LDFLAGS) \
-export-symbols $(top_srcdir)/rpc/rpc-lib/src/libgfrpc.sym