summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-10-06 14:40:07 +0200
committerDavid Sterba <dsterba@suse.com>2015-10-21 14:29:26 +0200
commitb556a992c3adf892948106503f6572704d877cdb (patch)
tree04fb167af6d8b8d66b20ef8d31bb535539d51309 /Makefile.in
parentc2e85337f6600bed1b348c9e86f83c27f753df6b (diff)
downloadbtrfs-progs-b556a992c3adf892948106503f6572704d877cdb.tar.gz
btrfs-progs: build: allow to build with various compiler warnings
Copied from linux kernel, 'make W=1' will build with various additional warnings turned on. There are 3 levels, combinations are possible. The build is quite noisy, not all warnings need to be fixed. A specific warning can be turned on by 'make EXTRA_CFLAGS=-Wsomething'. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 514a76f..18ebc04 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,6 +1,8 @@
# Export all variables to sub-makes by default
export
+include Makefile.extrawarn
+
CC = @CC@
LN_S = @LN_S@
AR = @AR@
@@ -19,7 +21,7 @@ CFLAGS = @CFLAGS@ \
-DBTRFS_FLAT_INCLUDES \
-D_XOPEN_SOURCE=700 \
-fno-strict-aliasing \
- -fPIC $(EXTRA_CFLAGS)
+ -fPIC $(KBUILD_CFLAGS) $(EXTRA_CFLAGS)
LDFLAGS = @LDFLAGS@ \
-rdynamic $(EXTRA_LDFLAGS)