File: dont_override_external_buildflags

package info (click to toggle)
apr 1.7.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,448 kB
  • sloc: ansic: 66,059; sh: 4,279; perl: 900; awk: 393; makefile: 375; python: 146
file content (19 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Don't force apr-using projects to use the compile flags used during
# apr's compilation.
--- apr.orig/build/apr_rules.mk.in
+++ apr/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_*