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/libcsem | |
parent | b25638b8b13ffa833414c6a7c48fffdac12eda61 (diff) |
Remove hardcoded run paths from libraries.
Diffstat (limited to 'plugins/libcsem')
-rw-r--r-- | plugins/libcsem/Makefile.am | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/plugins/libcsem/Makefile.am b/plugins/libcsem/Makefile.am index e4d4cca..c55a2f8 100644 --- a/plugins/libcsem/Makefile.am +++ b/plugins/libcsem/Makefile.am @@ -4,12 +4,26 @@ lib_LTLIBRARIES = liblibcsem.la libdir = $(pluginslibdir) +if BUILD_PYTHON_PACKAGE + +RUN_PATH = -Wl,-rpath,'$$ORIGIN/../chrysalide-libs:$$ORIGIN' + +else + +RUN_PATH = -Wl,-rpath,'$$ORIGIN' + +endif + + liblibcsem_la_SOURCES = \ exit.h exit.c \ semantic.h semantic.c liblibcsem_la_LDFLAGS = \ - -L$(top_srcdir)/src/.libs -lchrysacore + -avoid-version \ + -L$(top_srcdir)/src/.libs -lchrysacore \ + -L$(top_srcdir)/plugins/elf/.libs -lelf \ + $(RUN_PATH) devdir = $(includedir)/chrysalide/$(subdir) |