File 8492-Add-documentation-to-erl_nif.md.patch of Package erlang
From 4ea720fa3288b4ef9b74f5e6acdbfaf3295f7e4b Mon Sep 17 00:00:00 2001
From: Benedikt Reinartz <filmor@gmail.com>
Date: Tue, 25 Mar 2025 17:19:30 +0100
Subject: [PATCH 2/2] Add documentation to erl_nif.md
---
erts/doc/references/erl_nif.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index 12f9421af9..beb0655962 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -627,6 +627,12 @@ int writeiovec(ErlNifEnv *env, ERL_NIF_T
included. If the older macro <c>STATIC_ERLANG_NIF</c> is instead
used, then the name of the archive file must match the name of the
module.</p>
+ <p>Multiple static NIF libraries can be included in a single archive file by
+ specifying the respective <c>STATIC_ERLANG_NIF_LIBNAME</c> values in the configure
+ call separated by colons after the archive file name:</p>
+ <code type="none">
+ ./configure --enable-static-nifs=/path/to/archive.a:nif_lib1:nif_lib2
+ </code>
</item>
<tag><marker id="load"/><c>int (*load)(ErlNifEnv* caller_env, void** priv_data,
ERL_NIF_TERM load_info)</c></tag>
--
2.43.0