diff options
-rw-r--r-- | lua.morph | 2 | ||||
-rw-r--r-- | src/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ "sed -i -e '/^linux:/{n;s/-lreadline//g;s/-lhistory//g;s/-lncurses//g}' src/Makefile" ], "build-commands": [ - "make debian_linux INSTALL_TOP=\"$PREFIX\"" + "make debian_linux INSTALL_TOP=\"$PREFIX\" RPATH=\"$PREFIX/lib\"" ], "install-commands": [ "make INSTALL_TOP=\"$DESTDIR/$PREFIX\" debian_install" diff --git a/src/Makefile b/src/Makefile index 05f4b2a..b4c4286 100644 --- a/src/Makefile +++ b/src/Makefile @@ -189,7 +189,7 @@ LIB_OBJS = $(CORE_O:.o=.lo) $(LIB_O:.o=.lo) $(LIB_NAME) $(LIB_NAME:.la=.a): $(LIB_OBJS) $(LIBTOOL) --mode=link $(CC) -version-info $(LIB_VERSION) \ - -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS) + -rpath $(RPATH) -o $(LIB_NAME) $(LIB_OBJS) $(LIB_LIBS) lua$(V): $(LUA_O) $(LIB_NAME) $(LIBTOOL) --mode=link $(CC) -static -Wl,-E -o $@ $(LUA_O) $(LIB_NAME) $(LUA_LIBS) $(LDFLAGS) |