Commit 64405360cee33a058d7e07713af23aca43b96d41
Committed by
Richard Weinberger
1 parent
c6b17bbd39
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
um: don't bother trying to rebuild CHECKFLAGS for USER_OBJS
... just strip NOSTDINC_FLAGS out of it for those Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff
arch/um/scripts/Makefile.rules
... | ... | @@ -9,8 +9,6 @@ |
9 | 9 | |
10 | 10 | $(USER_OBJS:.o=.%): \ |
11 | 11 | c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include user.h $(CFLAGS_$(basetarget).o) |
12 | -$(USER_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \ | |
13 | - -Dunix -D__unix__ -D__$(SUBARCH)__ $(CF) | |
14 | 12 | |
15 | 13 | # These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of |
16 | 14 | # using it directly. |
... | ... | @@ -18,8 +16,9 @@ |
18 | 16 | |
19 | 17 | $(UNPROFILE_OBJS:.o=.%): \ |
20 | 18 | c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o) |
21 | -$(UNPROFILE_OBJS) : CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ \ | |
22 | - -Dunix -D__unix__ -D__$(SUBARCH)__ $(CF) | |
19 | + | |
20 | +$(USER_OBJS) $(UNPROFILE_OBJS): \ | |
21 | + CHECKFLAGS := $(patsubst $(NOSTDINC_FLAGS),,$(CHECKFLAGS)) | |
23 | 22 | |
24 | 23 | # The stubs can't try to call mcount or update basic block data |
25 | 24 | define unprofile |