branch: elpa/sweeprolog commit 268df47cfce6b78ee33fbe19a448454f7f3f7197 Author: Eshel Yaron <m...@eshelyaron.com> Commit: Eshel Yaron <m...@eshelyaron.com>
More rpath tweaks --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cb5499be99..09e2909742 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ SOURCE = $(BASENAME).c LDFLAGS += -shared LDFLAGS += -Llib -LDFLAGS += -Wl,-rpath,lib +LDFLAGS += -Wl,-rpath,$(CURRENT_DIR)/lib LDFLAGS += -lswipl CFLAGS += -fPIC @@ -26,6 +26,7 @@ CFLAGS += -O2 CFLAGS += -Ilib/swipl/include CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CURRENT_DIR) +CMAKE_OPTIONS += -DCMAKE_INSTALL_RPATH=$(CURRENT_DIR)/lib CMAKE_OPTIONS += -DUSE_GMP=OFF CMAKE_OPTIONS += -DSWIPL_PACKAGES_ODBC=OFF CMAKE_OPTIONS += -DSWIPL_PACKAGES_JAVA=OFF