From 55e7f95265c98bb3008f4d253ea7b6fa90fa6f92 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 14 Feb 2020 06:57:25 +0100 Subject: [PATCH] doc/stdenv: improve autoPatchelfHook description * Add id * Mention rpath * The control variables do not really have to be env vars (though without structuredAttrs there is not a difference) --- doc/stdenv/stdenv.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/stdenv/stdenv.xml b/doc/stdenv/stdenv.xml index 65a343d7edd..a4174f4f7ed 100644 --- a/doc/stdenv/stdenv.xml +++ b/doc/stdenv/stdenv.xml @@ -2001,7 +2001,7 @@ addEnvHooks "$hostOffset" myBashFunction - + autoPatchelfHook @@ -2010,15 +2010,13 @@ addEnvHooks "$hostOffset" myBashFunction 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 based on the given buildInputs and nativeBuildInputs. - You can also specify a runtimeDependencies environment variable which lists dependencies that are unconditionally added to all executables. - - + You can also specify a runtimeDependencies variable which lists dependencies to be unconditionally added to rpath of all executables. This is useful for programs that use dlopen 3 to load libraries at runtime. - In certain situations you may want to run the main command (autoPatchelf) 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 dontAutoPatchelf environment variable to a non-empty value. + In certain situations you may want to run the main command (autoPatchelf) 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 dontAutoPatchelf environment variable to a non-empty value. The autoPatchelf command also recognizes a --no-recurse command line flag, which prevents it from recursing into subdirectories.