--- setup.py.orig	2026-03-03 17:23:22
+++ setup.py	2026-05-06 15:05:47
@@ -683,7 +683,8 @@
     extensions['szip']['include_dirs'] = ['%PREFIX%/lib/libaec/include']
     extensions['aec']['library_dirs'] = ['%PREFIX%/lib/libaec/lib']
     extensions['aec']['include_dirs'] = ['%PREFIX%/lib/libaec/include']
-    extensions['gif']['include_dirs'] = ['%PREFIX%/include/giflib5']
+    extensions['gif']['library_dirs'] = ['%PREFIX%/libexec/giflib5/lib']
+    extensions['gif']['include_dirs'] = ['%PREFIX%/libexec/giflib5/include']
     extensions['jpeg2k']['include_dirs'].extend(
         (
             '%PREFIX%/include/openjpeg-2.3',
