]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10504 lmdb: silence warning on MacOS linker
authorHoward Chu <hyc@openldap.org>
Thu, 14 May 2026 13:15:55 +0000 (14:15 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 14 May 2026 13:17:53 +0000 (14:17 +0100)
libraries/liblmdb/mdb.c

index a701f8dd6ea695babbb6c67d9c11fbcb8abd4086..0222ff0d3997a19b7fed285a54316a5d15a67d6f 100644 (file)
@@ -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