[beast/ebeast: 21/24] EBEAST: use LD_PRELOAD to pick up -lbse from $(builddir) for 'make run'



commit dc0e5ffbf23e0790477dd363c79ae817dfea6afe
Author: Tim Janik <timj gnu org>
Date:   Tue Feb 21 14:41:19 2017 +0100

    EBEAST: use LD_PRELOAD to pick up -lbse from $(builddir) for 'make run'
    
    For 'make run', we point LD_PRELOAD at the builddir libbse, to avoid picking
    up an old installed libbse from /usr/lib or rpath settings.
    
    Signed-off-by: Tim Janik <timj gnu org>

 ebeast/Makefile.am |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/ebeast/Makefile.am b/ebeast/Makefile.am
index c9bf920..1c68e04 100644
--- a/ebeast/Makefile.am
+++ b/ebeast/Makefile.am
@@ -30,4 +30,6 @@ app:
 
 # == run ==
 run: app       # requires: npm
+       LD_PRELOAD="$(abs_top_builddir)/bse/.libs/libbse-@MAJOR@.so" \
        ./node_modules/electron/dist/electron .
+# NOTE, prefer LD_PRELOAD over LD_LIBRARY_PATH, to pick up $(builddir)/libbse *before* /usr/lib/libbse


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