libpsm2: disable blanket -Werror (gcc-11 fix)
Without the change gcc-11 build fails as: ``` $ nix-build -E 'with import ./. {}; libpsm2.override { stdenv = gcc11Stdenv; } ... /build/source/include/linux-x86_64/sysdep.h:146:9: error: array subscript 'struct xchg_dummy[0]' is partly outside array bounds of 'psmi_lock_t[1]' ```
This commit is contained in:
parent
6139dd3a1b
commit
035a6e805f
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ numactl pkg-config ];
|
buildInputs = [ numactl pkg-config ];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
# Disable blanket -Werror to avoid build failures
|
||||||
|
# on fresh toolchains like gcc-11.
|
||||||
|
"WERROR="
|
||||||
|
];
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"DESTDIR=$(out)"
|
"DESTDIR=$(out)"
|
||||||
"UDEVDIR=/etc/udev"
|
"UDEVDIR=/etc/udev"
|
||||||
|
Loading…
Reference in New Issue
Block a user