Unverified Commit b9676b77 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

Merge pull request #335986 from tobim/pkgs/python312-static

pkgsStatic.python312: fix build
parents 773abcbf f4917d28
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -455,6 +455,10 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
    "ac_cv_func_lchmod=no"
  ] ++ optionals static [
    "LDFLAGS=-static"
    "MODULE_BUILDTYPE=static"
  ] ++ optionals (stdenv.hostPlatform.isStatic && stdenv.hostPlatform.isMusl) [
    # dlopen is a no-op in static musl builds, and since we build everything without -fPIC it's better not to pretend.
    "ac_cv_func_dlopen=no"
  ];

  preConfigure = ''