mdbx: auto-define _GNU_SOURCE under control of MDBX_DISABLE_GNU_SOURCE.

Change-Id: I314d88b86517e3c44ad35fe02d3a27cb987c6d60
This commit is contained in:
Leonid Yuriev
2019-10-06 14:59:53 +03:00
parent 3c82ed0323
commit 7d621f6f0a
7 changed files with 24 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ suffix ?=
CC ?= gcc
LD ?= ld
MDBX_OPTIONS ?= -D_GNU_SOURCE=1 -DNDEBUG=1
MDBX_OPTIONS ?= -DNDEBUG=1
CFLAGS ?= -O2 -g3 -Wall -Werror -Wextra -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread
# LY: '--no-as-needed,-lrt' for ability to built with modern glibc, but then run with the old