From 09a606f1eec311c620ff5084e9ff8482167ceb6d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 19 Aug 2009 02:16:09 -0400 Subject: [PATCH] Behold the magic of ld -rpath $ORIGIN ...! --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5