File: user-cflags-override

package info (click to toggle)
ccontrol 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 656 kB
  • sloc: ansic: 1,533; sh: 337; makefile: 150; python: 141; xml: 64
file content (16 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Let the user's CFLAGS override ours, so they can change the -O level.
Author: Ted Percival <ted@midg3t.net>
Forwarded: no
Last-Update: 2011-11-14

--- a/configure
+++ b/configure
@@ -75,7 +75,7 @@
 echo $CC
 
 echo -n Looking for compiler flags...
-CFLAGS="${CFLAGS:--Wall -Wmissing-declarations} $OPTFLAGS"
+CFLAGS="$OPTFLAGS ${CFLAGS:--Wall -Wmissing-declarations}"
 echo $CFLAGS
 
 echo -n Looking for xmlto...