Added rpath=$ORIGIN to bmk.
authorMark Sibly <blitzmunter@gmail.com>
Tue, 10 Jun 2014 01:39:44 +0000 (13:39 +1200)
committerMark Sibly <blitzmunter@gmail.com>
Tue, 10 Jun 2014 01:39:44 +0000 (13:39 +1200)
src/bmk/bmk_util.bmx

index 0e1274b3f1f85c944d0129116a73d4068a185d6c..ad65beea4e464e84b5a9eb8e167bcd6f1a31c5da 100644 (file)
@@ -331,6 +331,7 @@ Function LinkApp( path$,lnk_files:TList,makelib )
        cmd:+" -m32 -s -Os -pthread"\r
        cmd:+" -o "+CQuote( path )\r
        cmd:+" "+CQuote( tmpfile )\r
+       cmd:+" -Wl,-rpath='$ORIGIN'"\r
        cmd:+" -L/usr/lib32"\r
        cmd:+" -L/usr/X11R6/lib"\r
        cmd:+" -L/usr/lib"\r