From e90fdf7fc7a1f0a1068e625586808cd76baf3504 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Mon, 9 Jul 2012 14:58:14 -0700 Subject: [PATCH] rsocket: Build rspreload library as part of build Build rspreload.so, but do not install it. This avoids the need for the user to build it manually, without risking that the preload library intercepts socket calls without the user's explicit knowledge. Signed-off-by: Sean Hefty --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 51b2f899..b734d45d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,11 +1,12 @@ INCLUDES = -I$(srcdir)/include -lib_LTLIBRARIES = src/librdmacm.la +lib_LTLIBRARIES = src/librdmacm.la src/rspreload.la ACLOCAL_AMFLAGS = -I config AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)\" -DRDMADIR=\"@rdmadir@\" src_librdmacm_la_CFLAGS = $(AM_CFLAGS) +src_rspreload_la_CFLAGS = $(AM_CFLAGS) -shared -fPIC if HAVE_LD_VERSION_SCRIPT librdmacm_version_script = -Wl,--version-script=$(srcdir)/src/librdmacm.map @@ -19,6 +20,8 @@ src_librdmacm_la_LDFLAGS = -version-info 1 -export-dynamic \ $(librdmacm_version_script) src_librdmacm_la_DEPENDENCIES = $(srcdir)/src/librdmacm.map +src_rspreload_la_SOURCES = src/preload.c src/indexer.c + bin_PROGRAMS = examples/ucmatose examples/rping examples/udaddy examples/mckey \ examples/rdma_client examples/rdma_server examples/rdma_xclient \ examples/rdma_xserver examples/rstream examples/rcopy -- 2.45.2