diff --git a/angelscript-fix-aarch64.patch b/angelscript-fix-aarch64.patch new file mode 100644 index 0000000..938cf17 --- /dev/null +++ b/angelscript-fix-aarch64.patch @@ -0,0 +1,17 @@ +--- sdk/angelscript/projects/meson/meson.build.orig 2021-04-02 07:42:31.195376514 +0000 ++++ sdk/angelscript/projects/meson/meson.build 2021-04-02 07:43:50.493193363 +0000 +@@ -50,6 +50,14 @@ if host_machine.cpu_family() == 'arm' + ] + endif + ++if host_machine.cpu_family() == 'aarch64' ++ add_languages('c') ++ angel_srcs += [ ++ '../../source/as_callfunc_arm64.cpp', ++ '../../source/as_callfunc_arm64_gcc.S', ++ ] ++endif ++ + angelscript_version_num = run_command(find_program('python3'), 'detect_ver.py', '--num').stdout().strip() + angelscript_lib = library( + 'angelscript', diff --git a/angelscript.changes b/angelscript.changes index 2d5b726..c598dc9 100644 --- a/angelscript.changes +++ b/angelscript.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 2 07:48:45 UTC 2021 - Guillaume GARDET + +- Fix build on aarch64: + * angelscript-fix-aarch64.patch + ------------------------------------------------------------------- Sat Mar 13 13:14:00 UTC 2021 - Luigi Baldoni diff --git a/angelscript.spec b/angelscript.spec index c8a4492..085392f 100644 --- a/angelscript.spec +++ b/angelscript.spec @@ -27,6 +27,7 @@ URL: https://www.angelcode.com/angelscript/ Source: https://www.angelcode.com/angelscript/sdk/files/%{name}_%{version}.zip # PATCH-FEATURE-OPENSUSE angelscript-addons_lib.patch aloisio@gmx.com -- build and install addons library Patch0: angelscript-addons_lib.patch +Patch1: angelscript-fix-aarch64.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: meson >= 0.49.0