make safe_flag check compatible with POSIX sh

pull/65/head
Daniel Micay 2018-10-23 15:55:45 -04:00
parent 59def67979
commit 9d1567ce16
1 changed files with 1 additions and 1 deletions

View File

@ -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