Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2019-05-18 01:53:02 +0300
committerAndrei Vagin <avagin@gmail.com>2019-09-07 15:59:49 +0300
commit9df47bb26f95214383554640a1f7ec65e7841cbc (patch)
treec1ac8febfde4fdcbc870bc9d5a18d00747f11d49 /Makefile
parent1b66b66b56517a1e522530efe159c7322bafd921 (diff)
build: Move __ASSEMBLY__ define to the top Makefile
__ASSEMBLY__ is used to guard C-related code in headers from asm-compatible defines. We actually want every .S file to be assembled with -D__ASSEMBLY__ not to burst with C in asm file. Move __ASSEMBLY__ from all local asflags to top Makefile's AFLAGS. Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com> Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 50948787a..84fc0841f 100644
--- a/Makefile
+++ b/Makefile
@@ -129,9 +129,10 @@ ifeq ($(GMON),1)
export GMON GMONLDOPT
endif
+AFLAGS += -D__ASSEMBLY__
CFLAGS += $(USERCFLAGS) $(WARNINGS) $(DEFINES) -iquote include/
HOSTCFLAGS += $(WARNINGS) $(DEFINES) -iquote include/
-export CFLAGS USERCLFAGS HOSTCFLAGS
+export AFLAGS CFLAGS USERCLFAGS HOSTCFLAGS
# Default target
all: criu lib crit