summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorTim <16214296+Tim-Wsm@users.noreply.github.com>2025-02-09 22:54:29 +0100
committerAlyssa Ross <hi@alyssa.is>2025-02-17 12:52:56 +0100
commiteaee7b7a4515246c0316e9ef053b64cba6d6929c (patch)
tree6a3eb056b79492a85a9a96951d4cd01dba053fbf /pkgs/development/python-modules/rangehttpserver
parent64949102ca2dcedb9edac83871ff0cf84313405b (diff)
glibc_multi: add output "static"
This change enables static compilation with glibc in a multilib setup. For building a nix shell the output can now be referenced as follows: devShells.default = pkgs.mkShell { packages = [ pkgs.glibc_multi.static ]; }; In the implementation I was forced to make two design decisions: 1. The directory `$static/lib64` has to be a "real" directory and not a symlink. Otherwise, the path to this directory is not added to $NIX_LDFLAGS, which in turn causes the files to not be visible to gcc and ld during the build process (for details see `pkgs/build-support/bintools-wrapper/setup-hook.sh` line 16). 2. The directories `$static/lib` and `$static/lib64` have to contain symlinks to both the files used for static and for dynamic linking (i.e. the outputs of `static` and `out` of the 32 and 64 bit variant of glibc). Without this, dynamic linking still works, however the resulting binaries will segfault.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions