Path: blob/main/games/0ad/files/patch-build_premake_premake5.lua
16135 views
--- build/premake/premake5.lua.orig 2021-02-28 23:45:14 UTC1+++ build/premake/premake5.lua2@@ -87,6 +87,8 @@ else3arch = "aarch64"4elseif string.find(machine, "e2k") == 1 then5arch = "e2k"6+ elseif string.find(machine, "ppc64") == 1 or string.find(machine, "powerpc64") == 1 then7+ arch = "ppc64"8else9print("WARNING: Cannot determine architecture from GCC, assuming x86")10end11@@ -365,7 +365,7 @@ function project_set_build_flags()1213if os.istarget("linux") or os.istarget("bsd") then14if _OPTIONS["prefer-local-libs"] then15- libdirs { "/usr/local/lib" }16+ libdirs { "%%LOCALBASE%%/lib" }17end1819-- To use our local shared libraries, they need to be found in the20@@ -865,6 +867,8 @@ function setup_all_libs ()21table.insert(source_dirs, "lib/sysdep/arch/aarch64");22elseif arch == "e2k" then23table.insert(source_dirs, "lib/sysdep/arch/e2k");24+ elseif arch == "ppc64" then25+ table.insert(source_dirs, "lib/sysdep/arch/ppc64");26end2728-- OS-specific293031