From bfa8e439ba70558e65c7a03663fac8b0c822bc25 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Sat, 24 Jun 2017 19:34:29 +0300 Subject: [PATCH] mdbx: use GNU C11 by default. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bdcaf3e3..fcf8bdc3 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,8 @@ CC ?= gcc CXX ?= g++ XCFLAGS ?= -DNDEBUG=1 -DMDBX_DEBUG=0 -DLIBMDBX_EXPORTS=1 CFLAGS ?= -O2 -g3 -Wall -Werror -Wextra -ffunction-sections -fPIC -fvisibility=hidden -CFLAGS += -D_GNU_SOURCE=1 -std=gnu99 -pthread $(XCFLAGS) -CXXFLAGS = -std=c++11 $(filter-out -std=gnu99,$(CFLAGS)) +CFLAGS += -D_GNU_SOURCE=1 -std=gnu11 -pthread $(XCFLAGS) +CXXFLAGS = -std=c++11 $(filter-out -std=gnu11,$(CFLAGS)) TESTDB ?= $(shell [ -d /dev/shm ] && echo /dev/shm || echo /tmp)/mdbx-check.db # LY: '--no-as-needed,-lrt' for ability to built with modern glibc, but then run with the old