From 9b94e45e25a0e64982bf733acadc13a0e717af83 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Sat, 11 Apr 2020 02:37:50 +0300 Subject: [PATCH] mdbx-make: add CFLAGS_EXTRA for convenience. Change-Id: I838f5b60cf9479e230a74da1bf80d30a8a7b437e --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 27eee508..25796761 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -19,9 +19,10 @@ mandir ?= $(prefix)/man suffix ?= CC ?= gcc +CFLAGS_EXTRA ?= LD ?= ld MDBX_OPTIONS ?= -DNDEBUG=1 -CFLAGS ?= -O2 -g -Wall -Werror -Wextra -Wpedantic -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-error=attributes +CFLAGS ?= -O2 -g -Wall -Werror -Wextra -Wpedantic -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-error=attributes $(CFLAGS_EXTRA) # -Wno-tautological-compare # HINT: Try append '--no-as-needed,-lrt' for ability to built with modern glibc, but then run with the old.