commit c19ac251e84d45b70a1642deebe4e72d6cfd8dd1 parent 5cc1075fcd71c897d9c276f48ca310b3ea8f6fe6 Author: Daniel Barlow <dan@telent.net> Date: Sat, 31 Oct 2026 19:13:39 +0000 openssl has changed how it expects CFLAGS to be set Diffstat:
| M | overlay.nix | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/overlay.nix b/overlay.nix @@ -321,11 +321,12 @@ extraPkgs # as a dependency preConfigure = let - arch = if stdenv.hostPlatform.gcc ? arch then "-march=${stdenv.hostPlatform.gcc.arch}" else ""; - soft = if arch == "-march=24kc" then "-msoft-float" else ""; + cflags = if stdenv.hostPlatform.gcc ? arch then "-march=${stdenv.hostPlatform.gcc.arch}" else ""; + cflags' = if cflags == "-march=24kc" then "${cflags} -msoft-float" else cflags; in '' - configureFlagsArray+=(no-threads no-asm CFLAGS="${arch} ${soft}") + CFLAGS="${cflags'}" + configureFlagsArray+=(no-threads no-asm ) ''; # don't need or want this bash script postInstall = o.postInstall + "rm $bin/bin/c_rehash\n";