nixpkgs/pkgs/stdenv
Peter Waller 9fdf395cc7 makeStaticBinaries: Set -DCMAKE_SKIP_INSTALL_RPATH
Without this, you get error messages during the install phase along the
lines of: "file RPATH_CHANGE could not write new RPATH:".

This is unsurprising because the static binaries do not have any dynamic
linker and thus, no runpath to rewrite either.

Tell cmake it doesn't need to do RPATH manipulation by passing
cmakeFlags.

While we're here, I also renamed `finalAttrs` to `args` and fixed the
indentation; this improves consistency with the surrounding code and
eliminates a point of confusion: because it was named `finalAttrs` I
presumed I should be able to influence it with an overrideAttrs setting
dontAddStaticConfigureFlags, but this turns out not to be possible;
adding prevAttrs as well doesn't work because of a limitation of
overrideAttrs whereby it gives an infinite recursion if the set of
attribute keys being returned depends on finalAttrs.

Signed-off-by: Peter Waller <p@pwaller.net>
2023-09-03 18:30:59 +01:00
..
cross pkgs: fix typos 2023-05-19 22:31:04 -04:00
custom
cygwin
darwin codesign_allocate: reference cctools 2023-08-01 21:27:09 +02:00
freebsd
generic stdenv: Add hack to fix cmake canExecute cross-compilation 2023-08-29 22:12:06 +03:00
linux cc-wrapper: include fortify-headers before libc includes for musl 2023-08-06 17:52:28 +01:00
native stdenv: fix stagesNative 2023-07-02 19:07:23 +10:00
nix
tests
adapters.nix makeStaticBinaries: Set -DCMAKE_SKIP_INSTALL_RPATH 2023-09-03 18:30:59 +01:00
booter.nix
default.nix darwin.stdenv: refactor stdenv definition 2023-07-02 17:56:24 -04:00