summaryrefslogtreecommitdiff
path: root/erts/configure
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2021-11-30 18:10:56 +0100
committerSverker Eriksson <sverker@erlang.org>2022-01-13 21:25:50 +0100
commit27775b501f272f69af2e40809a2c83a0bc25a722 (patch)
tree099a734f3cb3ebeea14b006c5fd0e69ee744e61a /erts/configure
parent4b94d7001205336b42641c651c37f2a1ec10dbf1 (diff)
downloaderlang-27775b501f272f69af2e40809a2c83a0bc25a722.tar.gz
erts: Add support for static Elixir NIF modules
or any modules with "exotic" characters in the name (like '.'). * Add STATIC_ERLANG_NIF_LIBNAME macro which is used both to identify the archive name and create a unique C identifier for the _nif_init function. * Run all static *_nif_init functions unconditionally at VM boot to get the corresponding module names. erlang:load_nif/2 can then match only against module names and does not have to care about archive filenames for static nifs.
Diffstat (limited to 'erts/configure')
-rwxr-xr-xerts/configure9
1 files changed, 4 insertions, 5 deletions
diff --git a/erts/configure b/erts/configure
index b97c6838d0..7d0aa2d1eb 100755
--- a/erts/configure
+++ b/erts/configure
@@ -1564,11 +1564,10 @@ Optional Features:
into the main binary. It is also possible to give a
list of nifs that should be linked statically. The
list should be a comma separated and contain the
- absolute path to a .a archive for each nif that is
- to be statically linked. The name of the .a archive
- has to be the same as the name of the nif. Note that
- you have to link any external dependencies that the
- nifs have to the main binary, so for the crypto nif
+ absolute path to a .a archive for each nif lib
+ that is to be statically linked. Note that you have
+ to link any external dependencies, that the nifs have,
+ to the main binary. So for the crypto nifs
you want to pass LIBS=-lcrypto to configure.
--enable-static-drivers comma separated list of linked-in drivers to link
statically with the main binary. The list should