summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2021-11-04 19:38:39 -0700
committerGitHub <noreply@github.com>2021-11-04 19:38:39 -0700
commitf140680724780505f4e9189f895290a41572395b (patch)
tree6c9e321aeed54ebf5ab8324dbab9c114edd51be3 /doc
parent7673b2a2a2408682e52c44dcf5d954a19763c074 (diff)
parente12f4db55640401ff06749231a4f4ffcef9a7269 (diff)
downloadnixpkgs-f140680724780505f4e9189f895290a41572395b.tar
nixpkgs-f140680724780505f4e9189f895290a41572395b.tar.gz
nixpkgs-f140680724780505f4e9189f895290a41572395b.tar.bz2
nixpkgs-f140680724780505f4e9189f895290a41572395b.tar.lz
nixpkgs-f140680724780505f4e9189f895290a41572395b.tar.xz
nixpkgs-f140680724780505f4e9189f895290a41572395b.tar.zst
nixpkgs-f140680724780505f4e9189f895290a41572395b.zip
Merge pull request #144671 from andersk/LD_LIBRARY_PATH
treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH, round 2
Diffstat (limited to 'doc')
-rw-r--r--doc/using/overlays.chapter.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/using/overlays.chapter.md b/doc/using/overlays.chapter.md
index d2e3b49a6aa..df152bc14e7 100644
--- a/doc/using/overlays.chapter.md
+++ b/doc/using/overlays.chapter.md
@@ -112,7 +112,7 @@ self: super:
 This overlay uses Intel's MKL library for both BLAS and LAPACK interfaces. Note that the same can be accomplished at runtime using `LD_LIBRARY_PATH` of `libblas.so.3` and `liblapack.so.3`. For instance:
 
 ```ShellSession
-$ LD_LIBRARY_PATH=$(nix-build -A mkl)/lib:$LD_LIBRARY_PATH nix-shell -p octave --run octave
+$ LD_LIBRARY_PATH=$(nix-build -A mkl)/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH nix-shell -p octave --run octave
 ```
 
 Intel MKL requires an `openmp` implementation when running with multiple processors. By default, `mkl` will use Intel's `iomp` implementation if no other is specified, but this is a runtime-only dependency and binary compatible with the LLVM implementation. To use that one instead, Intel recommends users set it with `LD_PRELOAD`. Note that `mkl` is only available on `x86_64-linux` and `x86_64-darwin`. Moreover, Hydra is not building and distributing pre-compiled binaries using it.