summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-02-04 19:23:38 +0100
committerDavid Sterba <dsterba@suse.cz>2015-02-05 14:33:36 +0100
commit9143fda114c0f57bc57ca30378874f100cb1af73 (patch)
tree136002754e7c91d533911eed943fd421a2b05623
parent4aa32c9debfafad68fd39bce8702b8624f287acd (diff)
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>
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
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])