From c7e0264a71d3101cf660a9da354a33792914fd76 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Mon, 19 Feb 2018 00:36:11 +0100 Subject: Makefile: Support NO_XATTR variable. --- Makefile | 7 +++++++ NEWS | 1 + 2 files changed, 8 insertions(+) diff --git a/Makefile b/Makefile index dfbacac..364825c 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,12 @@ endif endif endif +ifneq (,$(NO_XATTR)) +ifneq (0,$(NO_XATTR)) +ADDITIONAL_FLAGS += -DNO_XATTR +endif +endif + PVER := $(PROJ_DIR)Makefile.ver SDEP := Makefile.dep @@ -90,6 +96,7 @@ MUSTHAVE_FLAGS := \ -D_FILE_OFFSET_BITS=64 \ -Wall -Wextra -pedantic \ -g \ + $(ADDITIONAL_FLAGS) \ MUSTHAVE_CFLAGS := -std=c99 MUSTHAVE_CXXFLAGS := -std=c++11 diff --git a/NEWS b/NEWS index f8a38a8..dbb060e 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ Latest stuff * Support building with no extended attributes support when NO_XATTR macro is predefined to non-0 value (e.g. put -DNO_XATTR in CFLAGS). + You can achieve it by passing NO_XATTR=1 to make invocation. v1.1.2 (2018-01-06) -- cgit v1.2.1