glibc: enable cet only on x86_64 (skip x86_32)

`glibc-2.39` improved `--enable-cet` detection on unsupported platforms
and `./configure` will start failing as:

    glibc> configure: error: "CET is only supported on x86_64 or x32"
This commit is contained in:
Sergei Trofimovich 2024-02-01 09:46:48 +00:00
parent 0b8f8e0cd9
commit e447b1533e

View File

@ -155,7 +155,7 @@ stdenv.mkDerivation ({
# and on aarch64 with binutils 2.30 or later.
# https://sourceware.org/glibc/wiki/PortStatus
"--enable-static-pie"
] ++ lib.optionals stdenv.hostPlatform.isx86 [
] ++ lib.optionals stdenv.hostPlatform.isx86_64 [
# Enable Intel Control-flow Enforcement Technology (CET) support
"--enable-cet"
] ++ lib.optionals withLinuxHeaders [