btrfs-progs: autoconf: use config.h
authorKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2014 14:15:47 +0000 (15:15 +0100)
committerDavid Sterba <dsterba@suse.cz>
Wed, 28 Jan 2015 16:55:44 +0000 (17:55 +0100)
- the header file is generated by ./configure, the standard autotools
  way is to use -include config.h on compiler command line rather than
  include the file directly from code

- remove _GNU_SOURCE from code, the macros is already defined in config.h
  by AC_USE_SYSTEM_EXTENSIONS autoconf macro

Signed-off-by: Karel Zak <kzak@redhat.com>
[_GNU_SOURCE changes already done]
Signed-off-by: David Sterba <dsterba@suse.cz>
Makefile.in

index dcd6a68..c37db9d 100644 (file)
@@ -4,7 +4,11 @@ export
 CC = gcc
 LN = ln
 AR = ar
-AM_CFLAGS = -Wall -D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -fno-strict-aliasing -fPIC
+AM_CFLAGS = -include config.h -Wall \
+           -D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES \
+           -D_XOPEN_SOURCE=700  \
+           -fno-strict-aliasing -fPIC
+CFLAGS = -g -O1 -fno-strict-aliasing -rdynamic
 objects = ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
          root-tree.o dir-item.o file-item.o inode-item.o inode-map.o \
          extent-cache.o extent_io.o volumes.o utils.o repair.o \