From de3c028f0d97f8420a15f1c0e725737e48551def Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 14 Jul 2021 10:30:29 +0300 Subject: [PATCH] mdbx-make: fix `buildflags_tag` embedding into `config.h`. --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 35e560fe..507d02e1 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -215,7 +215,7 @@ MAN_SRCDIR := man1/ config.h: buildflags_tag mdbx.c $(lastword $(MAKEFILE_LIST)) @echo ' MAKE $@' $(QUIET)(echo '#define MDBX_BUILD_TIMESTAMP "$(MDBX_BUILD_TIMESTAMP)"' \ - && echo '#define MDBX_BUILD_FLAGS "$$(cat buildflags_tag)"' \ + && echo "#define MDBX_BUILD_FLAGS \"$$(cat buildflags_tag)\"" \ && echo '#define MDBX_BUILD_COMPILER "$(shell (LC_ALL=C $(CC) --version || echo 'Please use GCC or CLANG compatible compiler') | head -1)"' \ && echo '#define MDBX_BUILD_TARGET "$(shell set -o pipefail; (LC_ALL=C $(CC) -v 2>&1 | grep -i '^Target:' | cut -d ' ' -f 2- || (LC_ALL=C $(CC) --version | grep -qi e2k && echo E2K) || echo 'Please use GCC or CLANG compatible compiler') | head -1)"' \ ) >$@ @@ -423,7 +423,7 @@ src/version.c: src/version.c.in $(lastword $(MAKEFILE_LIST)) $(git_DIR)/HEAD $(g src/config.h: buildflags_tag src/version.c $(lastword $(MAKEFILE_LIST)) @echo ' MAKE $@' $(QUIET)(echo '#define MDBX_BUILD_TIMESTAMP "$(MDBX_BUILD_TIMESTAMP)"' \ - && echo '#define MDBX_BUILD_FLAGS "$$(cat buildflags_tag)"' \ + && echo "#define MDBX_BUILD_FLAGS \"$$(cat buildflags_tag)\"" \ && echo '#define MDBX_BUILD_COMPILER "$(shell (LC_ALL=C $(CC) --version || echo 'Please use GCC or CLANG compatible compiler') | head -1)"' \ && echo '#define MDBX_BUILD_TARGET "$(shell set -o pipefail; (LC_ALL=C $(CC) -v 2>&1 | grep -i '^Target:' | cut -d ' ' -f 2- || (LC_ALL=C $(CC) --version | grep -qi e2k && echo E2K) || echo 'Please use GCC or CLANG compatible compiler') | head -1)"' \ && echo '#define MDBX_BUILD_SOURCERY $(MDBX_BUILD_SOURCERY)' \