summary refs log tree commit diff
path: root/pkgs/build-support/wrapper-common
Commit message (Collapse)AuthorAge
* Merge pull request #123989 from Mic92/static-pieJörg Thalheim2021-05-25
|\ | | | | glibc: allow to build position-independent static executable
| * cc-wrapper: don't set rpath on static-pie executablesJörg Thalheim2021-05-23
| |
* | pkg-config-wrapper: mangle PKG_CONFIG_PATH{,_FOR_BUILD} correctlysternenseemann2021-05-18
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, mangleVarList would be used which would concatenate the variables using a space as a separator. Paths are however separated by `:` in PKG_CONFIG_PATH leading to entries being broken. This is fixed by introducing mangleVarListGeneric which allows us to specify the desired separator. Reproducer for the issue prior to this change: $ nix-shell -A pkgsLLVM.wayland [nix-shell] $ pkg-config --libs expat Package expat was not found in the pkg-config search path. Perhaps you should add the directory containing `expat.pc' to the PKG_CONFIG_PATH environment variable No package 'expat' found $ printf 'Host: %s\nBuild: %s' $PKG_CONFIG_PATH $PKG_CONFIG_PATH_FOR_BUILD Host: /nix/store/5h308a4ab8w7prcp8iflh5pnl78mayi2-expat-2.2.10-x86_64-unknown-linux-gnu-dev/lib/pkgconfig:/nix/store/z3y9ska2h4l1map25m195iq577g7g3gz-libxml2-x86_64-unknown-linux-gnu-2.9.12-dev/lib/pkgconfig:/nix/store/lbz5m1s0r7zn0cxvl21czfspli6ribzb-zlib-1.2.11-x86_64-unknown-linux-gnu-dev/lib/pkgconfig:/nix/store/rfhvp8r8n3ygpzh8j0l34lk8hwwi3z0h-libffi-3.3-x86_64-unknown-linux-gnu-dev/lib/pkgconfig Build: /nix/store/dw11ywy7qwfz53qisz0dggbgix88jah2-wayland-1.19.0-bin/lib/pkgconfig strace reveals the issue: stat("/nix/store/dw11ywy7qwfz53qisz0dggbgix88jah2-wayland-1.19.0-bin/lib/pkgconfig /nix/store/5h308a4ab8w7prcp8iflh5pnl78mayi2-expat-2.2.10-x86_64-unknown-linux-gnu-dev/lib/pkgconfig/expat-uninstalled.pc", 0x7fff49829fa0) = -1 ENOENT (No such file or directory) In the pkg-config wrapper $PKG_CONFIG_PATH_FOR_BUILD and $PKG_CONFIG_PATH are concatenated with a space which leads to two paths being messed up. This issue likely only affects native cross compilation.
* cc-wrapper, bintools-wrapper: support MACOSX_DEPLOYMENT_TARGET with rolesAndrew Childs2021-04-11
| | | | | | | | | | | | | | | | | | In a typical build environment the toolchain will use the value of the MACOSX_DEPLOYMENT_TARGET environment variable to determine the version of macOS to support. When cross compiling there are two distinct toolchains, but they will look at this single environment variable. To avoid contamination, we always set the equivalent command line flag which effectively disables the toolchain's internal handling. Prior to this change, the MACOSX_DEPLOYMENT_TARGET variable was ignored, and the toolchains always used the Nix platform definition (`darwinMinVersion`) unless overridden with command line arguments. This change restores support for MACOSX_DEPLOYMENT_TARGET, and adds nix-specific MACOSX_DEPLOYMENT_TARGET_FOR_BUILD and MACOSX_DEPLOYMENT_TARGET_FOR_TARGET for cross compilation.
* Merge #97597: stdenv wrappers: improve purity checkingVladimír Čunát2020-09-24
|\
| * Accept $TMP, $TMPDIR, $TEMP, and $TEMPDIR paths in purity checkTyson Whitehead2020-09-10
| |
* | Revert "utils.bash: revert #93560 for darwin, unblocks channels"Frederik Rietdijk2020-09-06
|/ | | | | | | | | | Revert the hack and the original faulty commit. This reverts commit 48264ee506105a2f5e61e5d327599e9f301bd77f. Revert "Purity checking should accept $TMP and not just /tmp" This reverts commit fb777be7d2925ec0e97783ce5e3a0136361dc0a8.
* utils.bash: revert #93560 for darwin, unblocks channelsFrederik Rietdijk2020-09-06
| | | | | Temporary fix. We definitely do not want to have two separate implementations.
* Purity checking should accept $TMP and not just /tmpTyson Whitehead2020-09-04
|
* *-wrapper; Switch from `infixSalt` to `suffixSalt`John Ericson2020-05-12
| | | | | | | I hate the thing too even though I made it, and rather just get rid of it. But we can't do that yet. In the meantime, this brings us more inline with autoconf and will make it slightly easier for me to write a pkg-config wrapper, which we need.
* utils.bash: allow response files in bootstrappingMatthew Bauer2019-04-20
| | | | | llvm uses response files in bootstrapping. It’s okay for them to happen even though we don’t use expandResponseParams here right now.
* {bintools,cc}-wrapper: Factor out role accumulation logicJohn Ericson2018-05-07