Index: Modules/_uuidmodule.c --- Modules/_uuidmodule.c.orig 2024-06-06 20:26:44.000000000 +0200 +++ Modules/_uuidmodule.c 2024-06-22 13:14:49.718760000 +0200 @@ -8,7 +8,7 @@ #include "Python.h" #if defined(HAVE_UUID_H) // AIX, FreeBSD, libuuid with pkgconf - #include + #include "/usr/include/uuid.h" #elif defined(HAVE_UUID_UUID_H) // libuuid without pkgconf #include Index: configure --- configure.orig 2024-06-06 20:26:44.000000000 +0200 +++ configure 2024-06-22 13:03:47.835852000 +0200 @@ -5459,9 +5459,9 @@ CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then - CFLAGS="-g -O2" + CFLAGS="-O2" else - CFLAGS="-g" + CFLAGS="" fi else if test "$GCC" = yes; then @@ -9329,7 +9329,7 @@ if test "$Py_DEBUG" = 'true' ; then OPT="-g $PYDEBUG_CFLAGS -Wall" else - OPT="-g -O3 -Wall" + OPT="-O2" fi ;; *) @@ -12950,7 +12950,7 @@ then LINKFORSHARED="-Wl,--export-dynamic" fi;; - SunOS/5*) case $CC in + SunOS/5*) case gcc in *gcc*) if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null then