diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-04-17 13:56:56 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-04-17 13:56:56 (GMT) |
commit | 58afc7858cffe180bafbae306db6be66d313b74b (patch) | |
tree | 6ccba3064e1b1d49faf1099d3d6fe3c600192819 /plugins/lnxsyscalls | |
parent | b25638b8b13ffa833414c6a7c48fffdac12eda61 (diff) |
Remove hardcoded run paths from libraries.
Diffstat (limited to 'plugins/lnxsyscalls')
-rw-r--r-- | plugins/lnxsyscalls/Makefile.am | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/lnxsyscalls/Makefile.am b/plugins/lnxsyscalls/Makefile.am index c12537c..9c5158f 100644 --- a/plugins/lnxsyscalls/Makefile.am +++ b/plugins/lnxsyscalls/Makefile.am @@ -4,6 +4,16 @@ lib_LTLIBRARIES = liblnxsyscalls.la libdir = $(pluginslibdir) +if BUILD_PYTHON_PACKAGE + +RUN_PATH = -Wl,-rpath,'$$ORIGIN/../chrysalide-libs:$$ORIGIN' + +else + +RUN_PATH = -Wl,-rpath,'$$ORIGIN' + +endif + liblnxsyscalls_la_SOURCES = \ collect.h collect.c \ core.h core.c \ @@ -17,8 +27,10 @@ liblnxsyscalls_la_SOURCES = \ liblnxsyscalls_la_LIBADD = liblnxsyscalls_la_LDFLAGS = \ + -avoid-version \ -L$(top_srcdir)/src/.libs -lchrysacore \ - -L$(top_srcdir)/plugins/arm/.libs -larm + -L$(top_srcdir)/plugins/arm/.libs -larm \ + $(RUN_PATH) EXTRA_DIST = linux-syscalls.db |