# [PATCH] fix #27791

- Thread: https://externals.io/message/9491
- Original archive: https://news-web.php.net/php.internals/9491
- Started by Joe Orton on 2004-04-22T20:53:03+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9491 — Joe Orton — 2004-04-22T20:53:03+00:00

URL: https://externals.io/message/9491#9491

It's necessary to pick up EXTRA_CFLAGS and friends when building against
httpd-2.0 HEAD due to LFS support in APR.

Index: sapi/apache2handler/config.m4
===================================================================
RCS file: /repository/php-src/sapi/apache2handler/config.m4,v
retrieving revision 1.1.2.7
diff -u -r1.1.2.7 config.m4
--- sapi/apache2handler/config.m4	16 Jul 2003 05:46:46 -0000	1.1.2.7
+++ sapi/apache2handler/config.m4	22 Apr 2004 20:46:58 -0000
@@ -34,7 +34,10 @@
   APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
   APXS_BINDIR=`$APXS -q BINDIR`
   APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
-  APXS_CFLAGS=`$APXS -q CFLAGS`
+  APXS_CFLAGS=
+  for flag in CFLAGS EXTRA_CFLAGS EXTRA_CPPFLAGS NOTEST_CFLAGS; do
+    APXS_CFLAGS="$APXS_CFLAGS `$APXS -q $flag`"
+  done
   APXS_MPM=`$APXS -q MPM_NAME`
   APU_BINDIR=`$APXS -q APU_BINDIR`
   APR_BINDIR=`$APXS -q APR_BINDIR`
