From 69c263ae5f3d4a2d251e00c7236efd035db2bb5a Mon Sep 17 00:00:00 2001
From: Bruno Lopes <brunvonlope@outlook.com>
Date: Sat, 13 Dec 2025 08:48:21 -0300
Subject: [PATCH] gegl: Add gegl-arm.def file

Fix def-file problem in arm environment.

Problem found in gegl/gegl.def
  the following symbols are in the library,
  but are not listed in the .def-file:
     + gegl_downscale_2x2_arm_neon
     + gegl_downscale_2x2_get_fun_arm_neon
     + gegl_downscale_2x2_nearest_arm_neon
     + gegl_resample_bilinear_arm_neon
     + gegl_resample_boxfilter_arm_neon
     + gegl_resample_nearest_arm_neon

Upstream-Status: Backport [https://github.com/GNOME/gegl/commit/69c263ae5f3d4a2d251e00c7236efd035db2bb5a]
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 gegl/gegl-arm.def | 6 ++++++
 gegl/meson.build  | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 gegl/gegl-arm.def

diff --git a/gegl/gegl-arm.def b/gegl/gegl-arm.def
new file mode 100644
index 000000000..cb8277cf6
--- /dev/null
+++ b/gegl/gegl-arm.def
@@ -0,0 +1,6 @@
+  gegl_downscale_2x2_arm_neon
+  gegl_downscale_2x2_get_fun_arm_neon
+  gegl_downscale_2x2_nearest_arm_neon
+  gegl_resample_bilinear_arm_neon
+  gegl_resample_boxfilter_arm_neon
+  gegl_resample_nearest_arm_neon
diff --git a/gegl/meson.build b/gegl/meson.build
index 0548b069d..85e89bbd2 100644
--- a/gegl/meson.build
+++ b/gegl/meson.build
@@ -102,7 +102,7 @@ if host_cpu_family == 'x86_64'
   simd_extra_def = ['gegl-x86_64.def']
 elif host_cpu_family == 'arm'
   simd_extra = [lib_gegl_arm_neon]
-  simd_extra_def = []
+  simd_extra_def = ['gegl-arm.def']
 else
   simd_extra = []
   simd_extra_def = []
-- 
2.43.0

