mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 07:32:22 +00:00
btrfs-progs: autoconf: use config.h
- 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>
This commit is contained in:
parent
48e728d112
commit
bb6b4fea9f
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user