summaryrefslogtreecommitdiffstats
path: root/doc/stdenv.xml
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-11-27 10:25:26 +0000
committerGitHub <noreply@github.com>2018-11-27 10:25:26 +0000
commitafbdeb7b9b0dab1fd502407103958608c9ba1e1e (patch)
tree8bfc9d5c364a46d6461af210ade54ff234c41727 /doc/stdenv.xml
parentf12bd000b9a7f72965c726012fd0d6cca6d4c629 (diff)
parent4a6e3e4185dcbe53c3d5eceaf2570d51516ad2b4 (diff)
Merge pull request #50802 from aszlig/autopatchelf-improvements
autoPatchelfHook: Fixes/improvements for Android SDK emulator
Diffstat (limited to 'doc/stdenv.xml')
-rw-r--r--doc/stdenv.xml31
1 files changed, 25 insertions, 6 deletions
diff --git a/doc/stdenv.xml b/doc/stdenv.xml
index 40ff17aafa09..4c19b2867b5a 100644
--- a/doc/stdenv.xml
+++ b/doc/stdenv.xml
@@ -2428,12 +2428,31 @@ addEnvHooks "$hostOffset" myBashFunction
<para>
This is a special setup hook which helps in packaging proprietary
software in that it automatically tries to find missing shared library
- dependencies of ELF files. All packages within the
- <envar>runtimeDependencies</envar> environment variable are
- unconditionally added to executables, which is useful for programs that
- use <citerefentry>
- <refentrytitle>dlopen</refentrytitle>
- <manvolnum>3</manvolnum> </citerefentry> to load libraries at runtime.
+ dependencies of ELF files based on the given
+ <varname>buildInputs</varname> and <varname>nativeBuildInputs</varname>.
+ </para>
+ <para>
+ You can also specify a <envar>runtimeDependencies</envar> environment
+ variable which lists dependencies that are unconditionally added to all
+ executables.
+ </para>
+ <para>
+ This is useful for programs that use <citerefentry>
+ <refentrytitle>dlopen</refentrytitle>
+ <manvolnum>3</manvolnum>
+ </citerefentry> to load libraries at runtime.
+ </para>
+ <para>
+ In certain situations you may want to run the main command
+ (<command>autoPatchelf</command>) of the setup hook on a file or a set
+ of directories instead of unconditionally patching all outputs. This
+ can be done by setting the <envar>dontAutoPatchelf</envar> environment
+ variable to a non-empty value.
+ </para>
+ <para>
+ The <command>autoPatchelf</command> command also recognizes a
+ <parameter class="command">--no-recurse</parameter> command line flag,
+ which prevents it from recursing into subdirectories.
</para>
</listitem>
</varlistentry>