diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-01-20 23:01:11 -0500 |
---|---|---|
committer | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-01-20 23:09:48 -0500 |
commit | 30cda188e566bc7c00222ee11d99e8b987894028 (patch) | |
tree | 8ba1d3de7968d160095ef7b0d81897633eb3f95d /pkgs/development/libraries/boehm-gc/default.nix | |
parent | 44cd0a3655041c8fbd9348198f55048bd78315ac (diff) | |
download | nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.tar nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.tar.gz nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.tar.bz2 nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.tar.lz nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.tar.xz nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.tar.zst nixpkgs-30cda188e566bc7c00222ee11d99e8b987894028.zip |
boehm-gc: don't link to libatomic_ops when cross-compiling
The configure script can't detect whether C11 atomic intrinsics are available when cross-compiling, so it links to libatomic_ops, which has to be propagated to all dependencies. To avoid this, assume that the atomic intrinsics are available.
Diffstat (limited to 'pkgs/development/libraries/boehm-gc/default.nix')
-rw-r--r-- | pkgs/development/libraries/boehm-gc/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/boehm-gc/default.nix b/pkgs/development/libraries/boehm-gc/default.nix index cdf72830797..a7e593d6795 100644 --- a/pkgs/development/libraries/boehm-gc/default.nix +++ b/pkgs/development/libraries/boehm-gc/default.nix @@ -35,7 +35,12 @@ stdenv.mkDerivation rec { configureFlags = [ "--enable-cplusplus" ] ++ lib.optional enableLargeConfig "--enable-large-config" - ++ lib.optional (stdenv.hostPlatform.libc == "musl") "--disable-static"; + ++ lib.optional (stdenv.hostPlatform.libc == "musl") "--disable-static" + # Configure script can't detect whether C11 atomic intrinsics are available + # when cross-compiling, so it links to libatomic_ops, which has to be + # propagated to all dependencies. To avoid this, assume that the intrinsics + # are available. + ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--with-libatomic-ops=none"; doCheck = true; # not cross; |