btrfs-progs: autoconf: set CFLAGS conditionally

The expected way to define custom CFLAGS is

  $ export CFLAGS=...
  $ ./configure ...

the build will use them. No not override the make variables directly
from now on.

Signed-off-by: David Sterba <dsterba@suse.cz>
master
David Sterba 2015-02-04 19:23:38 +01:00
parent 4aa32c9deb
commit 9143fda114
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ LIBBTRFS_MAJOR=0
LIBBTRFS_MINOR=1
LIBBTRFS_PATCHLEVEL=1
CFLAGS="-g -O1"
CFLAGS=${CFLAGS:-"-g -O1"}
AC_SUBST([CFLAGS])
AC_PREREQ([2.60])