summarylogtreecommitdiffstats
path: root/dont_override_external_buildflags
diff options
context:
space:
mode:
authorfftmp2022-10-19 20:09:41 +0400
committerfftmp2022-10-19 23:37:11 +0400
commita656c708c389c045d0f073ccd2326d7803c9068d (patch)
tree8e76c5ed68627d1349b575c15ce723da76e13e9f /dont_override_external_buildflags
downloadaur-a656c708c389c045d0f073ccd2326d7803c9068d.tar.gz
based on PKGBUILD from stable 1.7 version
Diffstat (limited to 'dont_override_external_buildflags')
-rw-r--r--dont_override_external_buildflags21
1 files changed, 21 insertions, 0 deletions
diff --git a/dont_override_external_buildflags b/dont_override_external_buildflags
new file mode 100644
index 000000000000..db30a810dc7e
--- /dev/null
+++ b/dont_override_external_buildflags
@@ -0,0 +1,21 @@
+# Don't force apr-using projects to use the compile flags used during
+# apr's compilation.
+Index: apr/build/apr_rules.mk.in
+===================================================================
+--- apr.orig/build/apr_rules.mk.in 2010-04-21 17:20:26.000000000 +0200
++++ apr/build/apr_rules.mk.in 2013-11-01 21:22:19.655108671 +0100
+@@ -41,10 +41,10 @@
+ # 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_*