From: Ryan C. Gordon Date: Wed, 19 Aug 2009 06:16:09 +0000 (-0400) Subject: Behold the magic of ld -rpath $ORIGIN ...! X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=09a606f1eec311c620ff5084e9ff8482167ceb6d;p=lugaru.git Behold the magic of ld -rpath $ORIGIN ...! --- diff --git a/makefile b/makefile index 9f3ef96..4d27bc9 100644 --- a/makefile +++ b/makefile @@ -72,7 +72,7 @@ ifeq ($(strip $(macosx)),true) APPLDFLAGS := $(SDLDIR)/lib/libSDL-1.2.0.dylib $(SDLDIR)/lib/libSDLmain-osx.a else CFLAGS += -DPLATFORM_LINUX=1 - LDFLAGS := ./libSDL-1.2.so.0 + LDFLAGS := ./libSDL-1.2.so.0 -Wl,-rpath,\$$ORIGIN ifeq ($(strip $(use_devil)),true) LDFLAGS += ./libIL.so.1 ./libILU.so.1 ./libILUT.so.1