From 3fdda83f7412ec4b11974e955f45fc978d3fa466 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 21 Dec 2024 17:07:20 +0700 Subject: [PATCH] save --- mdbx/mdbx.c | 2 +- mdbx/mdbx.go | 4 ++-- mdbx/mdbx.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mdbx/mdbx.c b/mdbx/mdbx.c index 7a16ca8..37ab926 100644 --- a/mdbx/mdbx.c +++ b/mdbx/mdbx.c @@ -24064,7 +24064,7 @@ __dll_export #warning "Build flags undefined. Please use correct build script" #endif // _MSC_VER #endif - MDBX_BUILD_METADATA + , MDBX_BUILD_METADATA }; #ifdef __SANITIZE_ADDRESS__ diff --git a/mdbx/mdbx.go b/mdbx/mdbx.go index 844c4bf..0f8f441 100644 --- a/mdbx/mdbx.go +++ b/mdbx/mdbx.go @@ -127,8 +127,8 @@ details about dealing with such situations. package mdbx /* -#cgo !windows CFLAGS: -O2 -g -DMDBX_BUILD_FLAGS='' -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fPIC -pthread -Wno-error=attributes -W -Wall -Wextra -Wpedantic -Wno-deprecated-declarations -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes -#cgo windows CFLAGS: -O2 -g -DMDBX_BUILD_FLAGS='' -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fexceptions -fno-common -W -Wno-deprecated-declarations -Wno-bad-function-cast -Wno-cast-function-type -Wall -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes +#cgo !windows CFLAGS: -O2 -g -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fPIC -pthread -Wno-error=attributes -W -Wall -Wextra -Wpedantic -Wno-deprecated-declarations -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes +#cgo windows CFLAGS: -O2 -g -DNDEBUG=1 -std=gnu11 -fvisibility=hidden -ffast-math -fexceptions -fno-common -W -Wno-deprecated-declarations -Wno-bad-function-cast -Wno-cast-function-type -Wall -Wno-format -Wno-format-security -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-unused-function -Wno-format-extra-args -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes #cgo windows LDFLAGS: -lntdll #cgo !android,linux LDFLAGS: -lrt diff --git a/mdbx/mdbx.h b/mdbx/mdbx.h index 8a87b85..ccb8b1c 100644 --- a/mdbx/mdbx.h +++ b/mdbx/mdbx.h @@ -1,4 +1,3 @@ -#define MDBX_BUILD_FLAGS "-std=gnu11 -fvisibility=hidden -ffast-math" /** _libmdbx_ (aka MDBX) is an extremely fast, compact, powerful, embeddable, @@ -39,6 +38,7 @@ credits and acknowledgments. #pragma once #ifndef LIBMDBX_H #define LIBMDBX_H +#define MDBX_BUILD_FLAGS "-std=gnu11 -fvisibility=hidden -ffast-math" #if defined(__riscv) || defined(__riscv__) || defined(__RISCV) || defined(__RISCV__) #warning "The RISC-V architecture is intentionally insecure by design. \