From 268df47cfce6b78ee33fbe19a448454f7f3f7197 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 27 Aug 2022 19:31:16 +0300 Subject: [PATCH] More rpath tweaks --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cb5499b..09e2909 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 -- 2.39.2