From: Eshel Yaron Date: Sat, 27 Aug 2022 16:31:16 +0000 (+0300) Subject: More rpath tweaks X-Git-Tag: v0.2.0~82 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=268df47cfce6b78ee33fbe19a448454f7f3f7197;p=dict.git More rpath tweaks --- 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