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.
This commit is contained in:
parent
44cd0a3655
commit
30cda188e5
1 changed files with 6 additions and 1 deletions
|
@ -35,7 +35,12 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--enable-cplusplus" ]
|
[ "--enable-cplusplus" ]
|
||||||
++ lib.optional enableLargeConfig "--enable-large-config"
|
++ 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;
|
doCheck = true; # not cross;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue