Unverified Commit f6b299f7 authored by Colin's avatar Colin Committed by GitHub
Browse files

kissat: fix static build by setting AR for cross toolchains (#494085)

parents 698ace1f 9d89c3a5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -66,6 +66,11 @@ stdenv.mkDerivation (finalAttrs: {

    ./configure

    # Kissat's configure only detects cross-compilation for *-linux-gnu-gcc,
    # missing other cross toolchains (e.g. musl). Fix AR in the generated makefile.
    substituteInPlace build/makefile \
      --replace-fail "AR=ar" "AR=${stdenv.cc.targetPrefix}ar"

    runHook postConfigure
  '';