From 1808e54487bbff44b038deb63b3c2267826d499f Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 21 Dec 2024 17:03:17 +0700 Subject: [PATCH] save --- Makefile | 2 ++ mdbx/mdbx.h | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f422062..05a85e0 100644 --- a/Makefile +++ b/Makefile @@ -33,3 +33,5 @@ cp: cp -R ./../libmdbx/dist/* ./mdbxdist/ cp mdbxdist/mdbx.h mdbx/ cp mdbxdist/mdbx.c mdbx/ + #add 1 line to mdbx.h about build flags which we have in `mdbx.go` + echo "$(echo '#define MDBX_BUILD_FLAGS "-std=gnu11 -fvisibility=hidden -ffast-math"'; cat mdbx.h)" > mdbx.h diff --git a/mdbx/mdbx.h b/mdbx/mdbx.h index 40f38ee..8a87b85 100644 --- a/mdbx/mdbx.h +++ b/mdbx/mdbx.h @@ -1,3 +1,4 @@ +#define MDBX_BUILD_FLAGS "-std=gnu11 -fvisibility=hidden -ffast-math" /** _libmdbx_ (aka MDBX) is an extremely fast, compact, powerful, embeddable,