]> git.jsancho.org Git - lugaru.git/commitdiff
Behold the magic of ld -rpath $ORIGIN ...!
authorRyan C. Gordon <icculus@icculus.org>
Wed, 19 Aug 2009 06:16:09 +0000 (02:16 -0400)
committerRyan C. Gordon <icculus@icculus.org>
Wed, 19 Aug 2009 06:16:09 +0000 (02:16 -0400)
makefile

index 9f3ef967bf056e4d7a7db4dbbdd15e1237f90d24..4d27bc99ce94a0967305a53eae466654e696f52b 100644 (file)
--- 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