File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ ifeq ($(ARCH),arm)
35
35
ARMV := $(shell echo $(SUBARCH ) | sed -nr 's/armv([[:digit:]]) .*/\1/p; t; i7')
36
36
37
37
ifeq ($(ARMV),6)
38
- USERCFLAGS += -march=armv6
38
+ ARCHCFLAGS += -march=armv6
39
39
endif
40
40
41
41
ifeq ($(ARMV),7)
42
- USERCFLAGS += -march=armv7-a+fp
42
+ ARCHCFLAGS += -march=armv7-a+fp
43
43
endif
44
44
45
45
ifeq ($(ARMV),8)
46
46
# Running 'setarch linux32 uname -m' returns armv8l on travis aarch64.
47
47
# This tells CRIU to handle armv8l just as armv7hf. Right now this is
48
48
# only used for compile testing. No further verification of armv8l exists.
49
- USERCFLAGS += -march=armv7-a
49
+ ARCHCFLAGS += -march=armv7-a
50
50
ARMV := 7
51
51
endif
52
52
@@ -159,7 +159,7 @@ export GMON GMONLDOPT
159
159
endif
160
160
161
161
AFLAGS += -D__ASSEMBLY__
162
- CFLAGS += $(USERCFLAGS ) $(WARNINGS ) $(DEFINES ) -iquote include/
162
+ CFLAGS += $(USERCFLAGS ) $(ARCHCFLAGS ) $( WARNINGS ) $(DEFINES ) -iquote include/
163
163
HOSTCFLAGS += $(WARNINGS ) $(DEFINES ) -iquote include/
164
164
export AFLAGS CFLAGS USERCLFAGS HOSTCFLAGS
165
165
Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ ifeq ($(ARCH),arm)
23
23
ARMV := $(shell echo $(SUBARCH ) | sed -nr 's/armv([[:digit:]]) .*/\1/p; t; i7')
24
24
25
25
ifeq ($(ARMV),6)
26
- USERCFLAGS += -march=armv6
26
+ ARCHCFLAGS += -march=armv6
27
27
else ifeq ($(ARMV),7)
28
- USERCFLAGS += -march=armv7-a+fp
28
+ ARCHCFLAGS += -march=armv7-a+fp
29
29
else ifeq ($(ARMV),8)
30
30
# To build aarch32 on armv8 Travis-CI (see criu Makefile)
31
- USERCFLAGS += -march=armv7-a
31
+ ARCHCFLAGS += -march=armv7-a
32
32
ARMV := 7
33
33
endif
34
34
endif
40
40
PKG_CONFIG ?= pkg-config
41
41
CFLAGS += -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
42
42
CFLAGS += -Wdeclaration-after-statement -Wstrict-prototypes
43
- CFLAGS += $(USERCFLAGS )
43
+ CFLAGS += $(USERCFLAGS ) $( ARCHCFLAGS )
44
44
CFLAGS += -D_GNU_SOURCE
45
45
CPPFLAGS += -iquote $(LIBDIR ) /arch/$(ARCH ) /include
46
46
Original file line number Diff line number Diff line change 1
1
LIBDIR := .
2
2
3
- CFLAGS += $(USERCFLAGS )
3
+ CFLAGS += $(USERCFLAGS ) $( ARCHCFLAGS )
4
4
5
5
LIB := libzdtmtst.a
6
6
You can’t perform that action at this time.
0 commit comments