btrfs-progs: autoconf: cleanup compilation flags usage
authorKarel Zak <kzak@redhat.com>
Wed, 10 Dec 2014 10:56:59 +0000 (11:56 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 28 Jan 2015 17:01:00 +0000 (18:01 +0100)
commit2c2e6c4e12e5af15fd80eb282df28a6b2c6c8d00
treeda64e82e7581ef4ba05f7a01e8581d5b57197b5f
parent8e14f8de17c445221f81cf3d2551d1278960e69e
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 <kzak@redhat.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Makefile.in
configure.ac