[ostree: 25/70] Force libreaddir-rand to be a shared library



commit d458399615325b39de03084eff1194d5852fe9f4
Author: Simon McVittie <smcv debian org>
Date:   Thu Mar 31 10:17:02 2016 +0100

    Force libreaddir-rand to be a shared library
    
    If installed-tests are disabled, it would normally be a static
    (convenience) library, which isn't something we can LD_PRELOAD.
    
    Signed-off-by: Simon McVittie <smcv debian org>
    
    Closes: #232
    Approved by: cgwalters

 Makefile-tests.am |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Makefile-tests.am b/Makefile-tests.am
index 4241ddb..6016d03 100644
--- a/Makefile-tests.am
+++ b/Makefile-tests.am
@@ -131,6 +131,9 @@ libreaddir_rand_la_SOURCES = tests/readdir-rand.c
 libreaddir_rand_la_CFLAGS = $(OT_INTERNAL_GIO_UNIX_CFLAGS)
 libreaddir_rand_la_LIBADD = $(OT_INTERNAL_GIO_UNIX_LIBS)
 libreaddir_rand_la_LDFLAGS = -avoid-version
+if !ENABLE_INSTALLED_TESTS
+libreaddir_rand_la_LDFLAGS += -rpath $(abs_builddir)
+endif
 
 test_programs = tests/test-varint tests/test-ot-unix-utils tests/test-bsdiff tests/test-mutable-tree \
        tests/test-keyfile-utils tests/test-ot-opt-utils tests/test-ot-tool-util \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]