|
|
e38630e |
diff -uNr 0ad-0.0.23-alpha.orig/build/premake/premake4.lua 0ad-0.0.23-alpha/build/premake/premake4.lua
|
|
|
e38630e |
--- 0ad-0.0.23-alpha.orig/build/premake/premake4.lua 2018-04-29 17:44:48.000000000 +0200
|
|
|
e38630e |
+++ 0ad-0.0.23-alpha/build/premake/premake4.lua 2018-05-22 13:23:25.238894337 +0200
|
|
|
e38630e |
@@ -356,26 +356,6 @@
|
|
|
b8284a1 |
defines { "INSTALLED_LIBDIR=" .. _OPTIONS["libdir"] }
|
|
|
b8284a1 |
end
|
|
|
6f3eb4c |
|
|
|
b8284a1 |
- if os.is("linux") or os.is("bsd") then
|
|
|
b8284a1 |
- -- To use our local shared libraries, they need to be found in the
|
|
|
b8284a1 |
- -- runtime dynamic linker path. Add their path to -rpath.
|
|
|
b8284a1 |
- if _OPTIONS["libdir"] then
|
|
|
b8284a1 |
- linkoptions {"-Wl,-rpath," .. _OPTIONS["libdir"] }
|
|
|
b8284a1 |
- else
|
|
|
b8284a1 |
- -- On FreeBSD we need to allow use of $ORIGIN
|
|
|
b8284a1 |
- if os.is("bsd") then
|
|
|
b8284a1 |
- linkoptions { "-Wl,-z,origin" }
|
|
|
b8284a1 |
- end
|
|
|
b8284a1 |
-
|
|
|
b8284a1 |
- -- Adding the executable path and taking care of correct escaping
|
|
|
b8284a1 |
- if _ACTION == "gmake" then
|
|
|
6f3eb4c |
- linkoptions { "-Wl,-rpath,'$$ORIGIN'" }
|
|
|
b8284a1 |
- elseif _ACTION == "codeblocks" then
|
|
|
3f109a1 |
- linkoptions { "-Wl,-R\\\\$$$ORIGIN" }
|
|
|
b8284a1 |
- end
|
|
|
b8284a1 |
- end
|
|
|
b8284a1 |
- end
|
|
|
b8284a1 |
-
|
|
|
b8284a1 |
end
|
|
|
b8284a1 |
end
|
|
|
b8284a1 |
|
|
|
e38630e |
diff -uNr 0ad-0.0.23-alpha.orig/build/premake/premake5.lua 0ad-0.0.23-alpha/build/premake/premake5.lua
|
|
|
e38630e |
--- 0ad-0.0.23-alpha.orig/build/premake/premake5.lua 2018-04-22 20:14:45.000000000 +0200
|
|
|
e38630e |
+++ 0ad-0.0.23-alpha/build/premake/premake5.lua 2018-05-22 13:23:29.022903711 +0200
|
|
|
e38630e |
@@ -344,26 +344,6 @@
|
|
|
e38630e |
defines { "INSTALLED_LIBDIR=" .. _OPTIONS["libdir"] }
|
|
|
e38630e |
end
|
|
|
e38630e |
|
|
|
e38630e |
- if os.istarget("linux") or os.istarget("bsd") then
|
|
|
e38630e |
- -- To use our local shared libraries, they need to be found in the
|
|
|
e38630e |
- -- runtime dynamic linker path. Add their path to -rpath.
|
|
|
e38630e |
- if _OPTIONS["libdir"] then
|
|
|
e38630e |
- linkoptions {"-Wl,-rpath," .. _OPTIONS["libdir"] }
|
|
|
e38630e |
- else
|
|
|
e38630e |
- -- On FreeBSD we need to allow use of $ORIGIN
|
|
|
e38630e |
- if os.istarget("bsd") then
|
|
|
e38630e |
- linkoptions { "-Wl,-z,origin" }
|
|
|
e38630e |
- end
|
|
|
e38630e |
-
|
|
|
e38630e |
- -- Adding the executable path and taking care of correct escaping
|
|
|
e38630e |
- if _ACTION == "gmake" then
|
|
|
e38630e |
- linkoptions { "-Wl,-rpath,'$$ORIGIN'" }
|
|
|
e38630e |
- elseif _ACTION == "codeblocks" then
|
|
|
e38630e |
- linkoptions { "-Wl,-R\\\\$$$ORIGIN" }
|
|
|
e38630e |
- end
|
|
|
e38630e |
- end
|
|
|
e38630e |
- end
|
|
|
e38630e |
-
|
|
|
e38630e |
end
|
|
|
e38630e |
end
|
|
|
e38630e |
|