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/dalvik | |
parent | b25638b8b13ffa833414c6a7c48fffdac12eda61 (diff) |
Remove hardcoded run paths from libraries.
Diffstat (limited to 'plugins/dalvik')
-rw-r--r-- | plugins/dalvik/Makefile.am | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/plugins/dalvik/Makefile.am b/plugins/dalvik/Makefile.am index 0183cfb..644c38a 100644 --- a/plugins/dalvik/Makefile.am +++ b/plugins/dalvik/Makefile.am @@ -4,22 +4,36 @@ lib_LTLIBRARIES = libdalvik.la libdir = $(pluginslibdir) +if BUILD_PYTHON_PACKAGE + +RUN_PATH = -Wl,-rpath,'$$ORIGIN/../chrysalide-libs:$$ORIGIN' + +else + +RUN_PATH = -Wl,-rpath,'$$ORIGIN' + +endif + if BUILD_PYTHON3_BINDINGS PYTHON3_LIBADD = python/libdalvikpython.la if BUILD_DISCARD_LOCAL -PYTHON3_LDFLAGS = -Wl,-rpath,$(pluginslibdir) \ - -L$(top_srcdir)/plugins/pychrysalide/.libs -l:pychrysalide.so +if BUILD_PYTHON_PACKAGE +PYTHON3_RUN_PATH = -Wl,-rpath,'$$ORIGIN/..' +else +PYTHON3_RUN_PATH = -Wl,-rpath,'$$ORIGIN' +endif else -PYTHON3_LDFLAGS = -Wl,-rpath,$(abs_top_srcdir)/plugins/pychrysalide/.libs \ - -L$(top_srcdir)/plugins/pychrysalide/.libs -l:pychrysalide.so +PYTHON3_RUN_PATH = -Wl,-rpath,$(abs_top_srcdir)/plugins/pychrysalide/.libs endif +PYTHON3_LDFLAGS = $(PYTHON3_RUN_PATH) -L$(top_srcdir)/plugins/pychrysalide/.libs -l:pychrysalide.so + PYTHON3_SUBDIRS = python endif @@ -46,9 +60,10 @@ libdalvik_la_LIBADD = \ v35/libdalvik35.la libdalvik_la_LDFLAGS = \ + -avoid-version \ -L$(top_srcdir)/src/.libs -lchrysacore \ -L$(top_srcdir)/plugins/dex/.libs -ldex \ - $(PYTHON3_LDFLAGS) + $(RUN_PATH) $(PYTHON3_LDFLAGS) devdir = $(includedir)/chrysalide/$(subdir) |