From: openKylin Developers <packaging@lists.openkylin.top>
Date: Tue, 7 May 2024 13:47:46 +0800
Subject: dont_override_external_buildflags

# Don't force apr-using projects to use the compile flags used during
# apr's compilation.
---
 build/apr_rules.mk.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/build/apr_rules.mk.in b/build/apr_rules.mk.in
index 2259c91..ebf00f3 100644
--- a/build/apr_rules.mk.in
+++ b/build/apr_rules.mk.in
@@ -42,10 +42,10 @@ LIBTOOL=@LIBTOOL@
 # compilation and linking flags that are supposed to be set only by the user.
 # configure adds to them for tests, but we restore them at the end.
 #
-CFLAGS=@CFLAGS@
-CPPFLAGS=@CPPFLAGS@
-LDFLAGS=@LDFLAGS@
-LIBS=@LIBS@
+CFLAGS?=@CFLAGS@
+CPPFLAGS?=@CPPFLAGS@
+LDFLAGS?=@LDFLAGS@
+LIBS?=@LIBS@
 DEFS=@DEFS@
 
 # anything added to the standard flags by configure is moved to EXTRA_*
