https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#index-std-1

Cc: Martin Wilck <mwi...@suse.com>
Cc: Benjamin Marzinski <bmarz...@redhat.com>
Cc: Christophe Varoqui <christophe.varo...@opensvc.com>
Cc: DM-DEVEL ML <dm-devel@lists.linux.dev>
Signed-off-by: Xose Vazquez Perez <xose.vazq...@gmail.com>
---
 create-config.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create-config.mk b/create-config.mk
index f05fdabe..3c3ba069 100644
--- a/create-config.mk
+++ b/create-config.mk
@@ -162,7 +162,7 @@ FORTIFY_OPT := $(shell \
 # including urcu.h must be compiled with at least the C11 standard. See:
 # 
https://github.com/urcu/userspace-rcu/commit/89280d020bf064d1055c360fb9974f128051043f
 C_STD := $(shell \
-       if printf '$(__HASH__)include <urcu.h>\nint main(void) { return 0; }\n' 
| $(CC) -o /dev/null -c -xc --std=gnu99 - 2>/dev/null; \
+       if printf '$(__HASH__)include <urcu.h>\nint main(void) { return 0; }\n' 
| $(CC) -o /dev/null -c -xc -std=gnu99 - 2>/dev/null; \
        then \
                echo "gnu99"; \
        else \
-- 
2.49.0


Reply via email to