From: Howard Chu Date: Thu, 14 May 2026 13:15:55 +0000 (+0100) Subject: ITS#10504 lmdb: silence warning on MacOS linker X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e67d370cabbc47f8efea29c34728c260983bc70c;p=thirdparty%2Fopenldap.git ITS#10504 lmdb: silence warning on MacOS linker --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index a701f8dd6e..0222ff0d39 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -288,7 +288,7 @@ union semun { /* On older compilers, use a separate section */ # ifdef __GNUC__ # ifdef __APPLE__ -# define ESECT __attribute__ ((section("__TEXT,text_env"))) +# define ESECT __attribute__ ((section("__TEXT,text_env,regular,pure_instructions"))) # else # define ESECT __attribute__ ((section("text_env"))) # endif