diff options
author | Artturin <Artturin@artturin.com> | 2023-11-18 00:44:18 +0200 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-11-18 20:36:39 +0200 |
commit | 69b2aa71ab3c9bf18d56997a5dd5bee5db4b9102 (patch) | |
tree | 053e6f30eb5762a1a7332787d4bba2ae2cb208f0 | |
parent | 2927cc89240a9c3edec722aea988bc9ccc9d341b (diff) |
cmake: Fix feature check
Unconditional because once pie is enabled on glibc it will start to fail
-rw-r--r-- | pkgs/by-name/cm/cmake/package.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/by-name/cm/cmake/package.nix b/pkgs/by-name/cm/cmake/package.nix index a573147915012..6da2a9caefbf3 100644 --- a/pkgs/by-name/cm/cmake/package.nix +++ b/pkgs/by-name/cm/cmake/package.nix @@ -159,6 +159,12 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeBool "BUILD_CursesDialog" cursesUI) ]; + # `pkgsCross.musl64.cmake.override { stdenv = pkgsCross.musl64.llvmPackages_16.libcxxStdenv; }` + # fails with `The C++ compiler does not support C++11 (e.g. std::unique_ptr).` + # The cause is a compiler warning `warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]` + # interfering with the feature check. + env.NIX_CFLAGS_COMPILE = "-Wno-unused-command-line-argument"; + # make install attempts to use the just-built cmake preInstall = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' sed -i 's|bin/cmake|${buildPackages.cmakeMinimal}/bin/cmake|g' Makefile |