Blame premake-no-automatic-rpath.patch

2a51b4
diff --git a/build/premake/premake5/src/scripts.c b/build/premake/premake5/src/scripts.c
2a51b4
index 9ed203c..144ea46 100644
2a51b4
--- a/build/premake/premake5/src/scripts.c
2a51b4
+++ b/build/premake/premake5/src/scripts.c
2a51b4
@@ -5184,17 +5184,8 @@ static const unsigned char builtin_script_37[] = {
2a51b4
  99, 102, 103,  46,  98, 117, 105, 108, 100, 116,  97, 114, 103, 101, 116,  46, 100, 105, 114, 101,  99, 116, 111, 114, 121,  44,  32, 102, 117, 108, 108, 112, 
2a51b4
  97, 116, 104,  41,  10, 105, 102,  32, 110, 111, 116,  32,  40, 116,  97,  98, 108, 101,  46,  99, 111, 110, 116,  97, 105, 110, 115,  40, 114, 112,  97, 116, 
2a51b4
 104, 115,  44,  32, 114, 112,  97, 116, 104,  41,  41,  32, 116, 104, 101, 110,  10, 116,  97,  98, 108, 101,  46, 105, 110, 115, 101, 114, 116,  40, 114, 112, 
2a51b4
- 97, 116, 104, 115,  44,  32, 114, 112,  97, 116, 104,  41,  10, 101, 110, 100,  10, 101, 110, 100,  10, 102, 111, 114,  32,  95,  44,  32, 115, 105,  98, 108, 
2a51b4
-105, 110, 103,  32, 105, 110,  32, 105, 112,  97, 105, 114, 115,  40,  99, 111, 110, 102, 105, 103,  46, 103, 101, 116, 108, 105, 110, 107, 115,  40,  99, 102, 
2a51b4
-103,  44,  32,  34, 115, 105,  98, 108, 105, 110, 103, 115,  34,  44,  32,  34, 111,  98, 106, 101,  99, 116,  34,  41,  41,  32, 100, 111,  10, 105, 102,  32, 
2a51b4
- 40, 115, 105,  98, 108, 105, 110, 103,  46, 107, 105, 110, 100,  32,  61,  61,  32, 112,  46,  83,  72,  65,  82,  69,  68,  76,  73,  66,  41,  32, 116, 104, 
2a51b4
-101, 110,  10, 108, 111,  99,  97, 108,  32, 102, 117, 108, 108, 112,  97, 116, 104,  32,  61,  32, 115, 105,  98, 108, 105, 110, 103,  46, 108, 105, 110, 107, 
2a51b4
-116,  97, 114, 103, 101, 116,  46, 100, 105, 114, 101,  99, 116, 111, 114, 121,  10, 108, 111,  99,  97, 108,  32, 114, 112,  97, 116, 104,  32,  61,  32, 112, 
2a51b4
- 97, 116, 104,  46, 103, 101, 116, 114, 101, 108,  97, 116, 105, 118, 101,  40,  99, 102, 103,  46,  98, 117, 105, 108, 100, 116,  97, 114, 103, 101, 116,  46, 
2a51b4
-100, 105, 114, 101,  99, 116, 111, 114, 121,  44,  32, 102, 117, 108, 108, 112,  97, 116, 104,  41,  10, 105, 102,  32, 110, 111, 116,  32,  40, 116,  97,  98, 
2a51b4
-108, 101,  46,  99, 111, 110, 116,  97, 105, 110, 115,  40, 114, 112,  97, 116, 104, 115,  44,  32, 114, 112,  97, 116, 104,  41,  41,  32, 116, 104, 101, 110, 
2a51b4
- 10, 116,  97,  98, 108, 101,  46, 105, 110, 115, 101, 114, 116,  40, 114, 112,  97, 116, 104, 115,  44,  32, 114, 112,  97, 116, 104,  41,  10, 101, 110, 100, 
2a51b4
- 10, 101, 110, 100,  10, 101, 110, 100,  10, 102, 111, 114,  32,  95,  44,  32, 114, 112,  97, 116, 104,  32, 105, 110,  32, 105, 112,  97, 105, 114, 115,  40, 
2a51b4
+ 97, 116, 104, 115,  44,  32, 114, 112,  97, 116, 104,  41,  10, 101, 110, 100,  10, 101, 110, 100, 
2a51b4
+                                         10, 102, 111, 114,  32,  95,  44,  32, 114, 112,  97, 116, 104,  32, 105, 110,  32, 105, 112,  97, 105, 114, 115,  40, 
2a51b4
 114, 112,  97, 116, 104, 115,  41,  32, 100, 111,  10, 105, 102,  32, 116,  97,  98, 108, 101,  46,  99, 111, 110, 116,  97, 105, 110, 115,  40, 111, 115,  46, 
2a51b4
 103, 101, 116,  83, 121, 115, 116, 101, 109,  84,  97, 103, 115,  40,  99, 102, 103,  46, 115, 121, 115, 116, 101, 109,  41,  44,  32,  34, 100,  97, 114, 119, 
2a51b4
 105, 110,  34,  41,  32, 116, 104, 101, 110,  10, 114, 112,  97, 116, 104,  32,  61,  32,  34,  64, 108, 111,  97, 100, 101, 114,  95, 112,  97, 116, 104,  47, 
2a51b4
diff --git a/build/premake/premake5/src/tools/gcc.lua b/build/premake/premake5/src/tools/gcc.lua
2a51b4
index abd4c55..89f73b5 100644
2a51b4
--- a/build/premake/premake5/src/tools/gcc.lua
2a51b4
+++ b/build/premake/premake5/src/tools/gcc.lua
2a51b4
@@ -296,17 +296,6 @@
2a51b4
 			end
2a51b4
 		end
2a51b4
 
2a51b4
-		-- Automatically add linked shared libraries path relative to target directory
2a51b4
-		for _, sibling in ipairs(config.getlinks(cfg, "siblings", "object")) do
2a51b4
-			if (sibling.kind == p.SHAREDLIB) then
2a51b4
-				local fullpath = sibling.linktarget.directory
2a51b4
-				local rpath = path.getrelative(cfg.buildtarget.directory, fullpath)
2a51b4
-				if not (table.contains(rpaths, rpath)) then
2a51b4
-					table.insert(rpaths, rpath)
2a51b4
-				end
2a51b4
-			end
2a51b4
-		end
2a51b4
-
2a51b4
 		for _, rpath in ipairs(rpaths) do
2a51b4
 			if table.contains(os.getSystemTags(cfg.system), "darwin") then
2a51b4
 				rpath = "@loader_path/" .. rpath