mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 22:10:19 +02:00
make safe_flag check compatible with POSIX sh
This commit is contained in:
parent
59def67979
commit
9d1567ce16
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -3,7 +3,7 @@ CONFIG_UBSAN := false
|
|||
CONFIG_SEAL_METADATA := false
|
||||
|
||||
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
|
||||
|
||||
CPPFLAGS := -D_GNU_SOURCE
|
||||
|
|
Loading…
Add table
Reference in a new issue