Commit d315d20d569f7da176eb7445b8c21ea055083f06
1 parent
62d4b81a
Exists in
master
and in
2 other branches
build: make CFLAGS user setable
There is no need to force the non-default CFLAGS on users trying to set them via enviroment variable or on configure command.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
configure.ac
... | ... | @@ -3,6 +3,9 @@ |
3 | 3 | # FIXME - add project url as the last argument |
4 | 4 | AC_INIT(gf-complete, 1.0) |
5 | 5 | |
6 | +# Override default CFLAGS | |
7 | +: ${CFLAGS="-Wall -Wpointer-arith -O3 -g"} | |
8 | + | |
6 | 9 | AC_PREREQ([2.61]) |
7 | 10 | |
8 | 11 | AM_INIT_AUTOMAKE([no-dependencies foreign]) |
... | ... | @@ -16,9 +19,6 @@ AC_CONFIG_MACRO_DIR([m4]) |
16 | 19 | # This prevents './configure; make' from trying to run autotools. |
17 | 20 | AM_MAINTAINER_MODE([disable]) |
18 | 21 | |
19 | -# Override default CFLAGS | |
20 | -CFLAGS="-Wall -Wpointer-arith -O3 -g" | |
21 | - | |
22 | 22 | dnl Compiling with per-target flags requires AM_PROG_CC_C_O. |
23 | 23 | AC_PROG_CC |
24 | 24 | ... | ... |