From 7d5fcaa40a63b04164c2910a37c807df306797b1 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, 5 insertions(+) diff --git a/Makefile.am b/Makefile.am index 51b2f899..9bf60707 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,11 +1,13 @@ INCLUDES = -I$(srcdir)/include lib_LTLIBRARIES = src/librdmacm.la +noinst_LTLIBRARIES = src/librspreload.la ACLOCAL_AMFLAGS = -I config AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DSYSCONFDIR=\"$(sysconfdir)\" -DRDMADIR=\"@rdmadir@\" src_librdmacm_la_CFLAGS = $(AM_CFLAGS) +src_librspreload_la_CFLAGS = $(AM_CFLAGS) if HAVE_LD_VERSION_SCRIPT librdmacm_version_script = -Wl,--version-script=$(srcdir)/src/librdmacm.map @@ -19,6 +21,9 @@ src_librdmacm_la_LDFLAGS = -version-info 1 -export-dynamic \ $(librdmacm_version_script) src_librdmacm_la_DEPENDENCIES = $(srcdir)/src/librdmacm.map +src_librspreload_la_SOURCES = src/preload.c src/indexer.c +src_librspreload_la_LIBADD = $(top_builddir)/src/librdmacm.la + 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