From 2c2e6c4e12e5af15fd80eb282df28a6b2c6c8d00 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 10 Dec 2014 11:56:59 +0100 Subject: btrfs-progs: autoconf: cleanup compilation flags usage - define basic default CFLAGS in configure.ac, because: * autoconf default is -g -O2, but btrfs uses -g -O1 * it's better to follow autoconf; standard way to modify CFLAGS is to call: CFLAGS="foo bar" ./configure - move all flags to one place in Makefile.in - don't use AM_CFLAGS, the CFLAGS and STATIC_CFLAGS are enough - don't mix objects and flags in $LIBS, it's more readable to add $(libs) to make rules Signed-off-by: Karel Zak Signed-off-by: David Sterba --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 662d9ffe..f6adefbf 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,8 @@ LIBBTRFS_MAJOR=0 LIBBTRFS_MINOR=1 LIBBTRFS_PATCHLEVEL=1 +CFLAGS="-g -O1" + AC_PREREQ([2.60]) AC_CONFIG_AUX_DIR([config]) -- cgit v1.2.3