make safe_flag check compatible with POSIX sh
This commit is contained in:
parent
59def67979
commit
9d1567ce16
2
Makefile
2
Makefile
@ -3,7 +3,7 @@ CONFIG_UBSAN := false
|
|||||||
CONFIG_SEAL_METADATA := false
|
CONFIG_SEAL_METADATA := false
|
||||||
|
|
||||||
define safe_flag
|
define safe_flag
|
||||||
$(shell $(CC) -E $1 - </dev/null &>/dev/null && echo $1)
|
$(shell $(CC) -E $1 - </dev/null >/dev/null 2>&1 && echo $1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CPPFLAGS := -D_GNU_SOURCE
|
CPPFLAGS := -D_GNU_SOURCE
|
||||||
|
Loading…
Reference in New Issue
Block a user