File 1992-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/references/erl_nif.md b/erts/doc/references/erl_nif.md
index 12f9421af9..beb0655962 100644
--- a/erts/doc/references/erl_nif.md
+++ b/erts/doc/references/erl_nif.md
@@ -513,6 +513,14 @@ calling NIF API functions. Functions exist for the following functionality:
   instead used, then the name of the archive file must match the name of the
   module.
 
+  Multiple static NIF libraries can be included in a single archive file by
+  specifying the respective `STATIC_ERLANG_NIF_LIBNAME` values in the configure
+  call separated by colons after the archive file name:
+
+  ```sh
+  ./confgure --enable-static-nifs=/path/to/archive.a:nif_lib1:nif_lib2
+  ```
+
 - __`int (*load)(ErlNifEnv* caller_env, void** priv_data, ERL_NIF_TERM load_info)`__ - 
   `load`{: #load } is called when the NIF library is loaded and no previously
   loaded library exists for this module.
-- 
2.43.0

openSUSE Build Service is sponsored by