btrfs-progs: autoconf: move custom CFLAGS from makefile

Keep only flags that are required to build properly, current fine
tunings are moved to the optional defaults in configure and can be
overriden by the user.

Signed-off-by: David Sterba <dsterba@suse.cz>
master
David Sterba 2015-02-05 14:46:47 +01:00
parent 9143fda114
commit 005526d065
2 changed files with 7 additions and 5 deletions

View File

@ -10,12 +10,14 @@ INSTALL = @INSTALL@
DISABLE_DOCUMENTATION = @DISABLE_DOCUMENTATION@
DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@
# Non-static compilation flags
# Common build flags
CFLAGS = @CFLAGS@ \
-include config.h -Wall \
-D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES \
-include config.h \
-D_FILE_OFFSET_BITS=64 \
-DBTRFS_FLAT_INCLUDES \
-D_XOPEN_SOURCE=700 \
-fno-strict-aliasing -fPIC \
-fno-strict-aliasing \
-fPIC \
-rdynamic
LDFLAGS = @LDFLAGS@

View File

@ -8,7 +8,7 @@ LIBBTRFS_MAJOR=0
LIBBTRFS_MINOR=1
LIBBTRFS_PATCHLEVEL=1
CFLAGS=${CFLAGS:-"-g -O1"}
CFLAGS=${CFLAGS:-"-g -O1 -Wall"}
AC_SUBST([CFLAGS])
AC_PREREQ([2.60])