mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-03 17:27:50 +00:00
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>
This commit is contained in:
parent
9143fda114
commit
005526d065
10
Makefile.in
10
Makefile.in
@ -10,12 +10,14 @@ INSTALL = @INSTALL@
|
|||||||
DISABLE_DOCUMENTATION = @DISABLE_DOCUMENTATION@
|
DISABLE_DOCUMENTATION = @DISABLE_DOCUMENTATION@
|
||||||
DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@
|
DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@
|
||||||
|
|
||||||
# Non-static compilation flags
|
# Common build flags
|
||||||
CFLAGS = @CFLAGS@ \
|
CFLAGS = @CFLAGS@ \
|
||||||
-include config.h -Wall \
|
-include config.h \
|
||||||
-D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES \
|
-D_FILE_OFFSET_BITS=64 \
|
||||||
|
-DBTRFS_FLAT_INCLUDES \
|
||||||
-D_XOPEN_SOURCE=700 \
|
-D_XOPEN_SOURCE=700 \
|
||||||
-fno-strict-aliasing -fPIC \
|
-fno-strict-aliasing \
|
||||||
|
-fPIC \
|
||||||
-rdynamic
|
-rdynamic
|
||||||
|
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
@ -8,7 +8,7 @@ LIBBTRFS_MAJOR=0
|
|||||||
LIBBTRFS_MINOR=1
|
LIBBTRFS_MINOR=1
|
||||||
LIBBTRFS_PATCHLEVEL=1
|
LIBBTRFS_PATCHLEVEL=1
|
||||||
|
|
||||||
CFLAGS=${CFLAGS:-"-g -O1"}
|
CFLAGS=${CFLAGS:-"-g -O1 -Wall"}
|
||||||
AC_SUBST([CFLAGS])
|
AC_SUBST([CFLAGS])
|
||||||
|
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
|
Loading…
Reference in New Issue
Block a user