summaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-08-31 18:36:16 +0200
committerDavid Sterba <dsterba@suse.com>2015-09-01 14:02:50 +0200
commit123f4bc78c6f62c49f841667884e87e7e39e307f (patch)
treef85582d8a070fee2049d5e110b064184a88b964e /INSTALL
parent0cdee628b11d53db814dbfa3c9e4f874f83c535c (diff)
downloadbtrfs-progs-123f4bc78c6f62c49f841667884e87e7e39e307f.tar.gz
btrfs-progs: makefile: add support for additional build flags
Allow fine tuned build options via EXTRA_CFLAGS and EXTRA_LDFLAGS variables. Useful for additional debugging flags or warnings etc. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL6
1 files changed, 5 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index 9c33c34..6c89012 100644
--- a/INSTALL
+++ b/INSTALL
@@ -42,7 +42,11 @@ Specific CFLAGS or LDFLAGS should be set like
$ CFLAGS=... LDFLAGS=... ./configure --prefix=/usr
-and not as arguments to make.
+and not as arguments to make. You can specify additional flags to build via
+variables EXTRA_CFLAGS and EXTRA_LDFLAGS that get appended to the predefined
+values of the respective variables.
+
+ $ make EXTRA_CFLAGS=-ggdb3
References:
* https://btrfs.wiki.kernel.org