From 9143fda114c0f57bc57ca30378874f100cb1af73 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 4 Feb 2015 19:23:38 +0100 Subject: 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 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cbad0992..37bb18c0 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- cgit v1.2.3