diff options
author | Artturi <Artturin@artturin.com> | 2023-11-10 21:57:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 21:57:44 +0200 |
commit | cc0b49cc27e98e6b8375fdae0a5077aac1458d90 (patch) | |
tree | 2d236e28e19ddf3673fffb73e8f2f03650ce5000 | |
parent | cfd83c931ff91cfc66be8758c3018d20fa6c7005 (diff) | |
parent | ad91b28cd92be6715945505dd0ae9deda2e18a77 (diff) | |
download | nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.tar nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.tar.gz nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.tar.bz2 nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.tar.lz nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.tar.xz nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.tar.zst nixpkgs-cc0b49cc27e98e6b8375fdae0a5077aac1458d90.zip |
Merge pull request #266253 from amjoseph-nixpkgs/pr/skalibs/fixcross
-rw-r--r-- | pkgs/development/skaware-packages/skalibs/default.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/pkgs/development/skaware-packages/skalibs/default.nix b/pkgs/development/skaware-packages/skalibs/default.nix index 7b035eee57f..80db4b62482 100644 --- a/pkgs/development/skaware-packages/skalibs/default.nix +++ b/pkgs/development/skaware-packages/skalibs/default.nix @@ -1,4 +1,8 @@ -{ skawarePackages, pkgs }: +{ lib +, stdenv +, skawarePackages +, pkgs +}: with skawarePackages; @@ -21,6 +25,17 @@ buildPackage { # Empty the default path, which would be "/usr/bin:bin". # It would be set when PATH is empty. This hurts hermeticity. "--with-default-path=" + + ] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [ + # ./configure: sysdep posixspawnearlyreturn cannot be autodetected + # when cross-compiling. Please manually provide a value with the + # --with-sysdep-posixspawnearlyreturn=yes|no|... option. + # + # posixspawnearlyreturn: `yes` if the target has a broken + # `posix_spawn()` implementation that can return before the + # child has successfully exec'ed. That happens with old glibcs + # and some virtual platforms. + "--with-sysdep-posixspawnearlyreturn=no" ]; postInstall = '' |