--- configure.orig 2023-06-06 18:00:27.000000000 -0400 +++ configure 2023-12-31 18:27:23.031082000 -0500 @@ -6786,7 +6786,7 @@ # else # error unknown platform triplet # endif -#elif defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD_kernel__) || defined(__MidnightBSD_kernel__) # if defined(__LP64__) x86_64-kfreebsd-gnu # elif defined(__i386__) @@ -6844,8 +6844,10 @@ MULTIARCH="" ;; #( FreeBSD*) : MULTIARCH="" ;; #( + MidnightBSD*) : + MULTIARCH="" ;; #( *) : - MULTIARCH=$($CC --print-multiarch 2>/dev/null) + MULTIARCH= ;; esac @@ -7389,7 +7391,7 @@ PY3LIBRARY=libpython3.so fi ;; - Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) + MidnightBSD*|Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) LDLIBRARY='libpython$(LDVERSION).so' BLDLIBRARY='-L. -lpython$(LDVERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} @@ -8336,7 +8338,7 @@ if test "$Py_LTO" = 'true' ; then case $CC in - *clang*) + *clang*|cc) LDFLAGS_NOLTO="-fno-lto" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5 printf %s "checking whether C compiler accepts -flto=thin... " >&6; } @@ -12181,7 +12183,7 @@ Linux*|GNU*|QNX*|VxWorks*|Haiku*) LDSHARED='$(CC) -shared' LDCXXSHARED='$(CXX) -shared';; - FreeBSD*) + MidnightBSD*|FreeBSD*) if [ "`$CC -dM -E - &5 @@ -26302,7 +26304,7 @@ py_cv_module__scproxy=n/a py_cv_module_nis=n/a ;; #( - FreeBSD*) : + MidnightBSD*|FreeBSD*) : py_cv_module__scproxy=n/a