summaryrefslogtreecommitdiffstats
path: root/2.patch
blob: 63f46529e3ad5f72ea2d99e2194bec95a556b9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 19a83ee7a605ffd82816ff6c990d9e4ff5d1da5c Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Sat, 16 May 2026 14:42:49 +0200
Subject: [PATCH] Fix undefined $ext_builddir

---
 config.m4 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/config.m4 b/config.m4
index 4e2be0a..b4985c2 100644
--- a/config.m4
+++ b/config.m4
@@ -193,6 +193,11 @@ if test "$PHP_FASTCHART" != "no"; then
     FASTCHART_CFLAGS="$FASTCHART_CFLAGS -Werror -Wstrict-prototypes"
   fi
 
+  PHP_NEW_EXTENSION(fastchart,
+    $WRAPPER_SOURCES,
+    $ext_shared,,
+    $FASTCHART_CFLAGS)
+
   PHP_ADD_INCLUDE([$ext_srcdir])
   dnl Vendor include paths. Uses $abs_srcdir (autoconf-standard, always
   dnl populated before this macro fires) so VPATH / out-of-tree builds
@@ -208,9 +213,4 @@ if test "$PHP_FASTCHART" != "no"; then
   PHP_ADD_BUILD_DIR([$ext_builddir/vendor/qrcodegen])
   PHP_ADD_BUILD_DIR([$ext_builddir/vendor/plutovg/source])
   PHP_ADD_BUILD_DIR([$ext_builddir/vendor/plutosvg/source])
-
-  PHP_NEW_EXTENSION(fastchart,
-    $WRAPPER_SOURCES,
-    $ext_shared,,
-    $FASTCHART_CFLAGS)
 fi