diff --git a/wheelbuild/aom-fix-stack-size.patch b/wheelbuild/aom-fix-stack-size.patch index beaca04..9023831 100644 --- a/wheelbuild/aom-fix-stack-size.patch +++ b/wheelbuild/aom-fix-stack-size.patch @@ -56,15 +56,3 @@ index a749a22..8411569 100644 Error: aom_free(worker->impl_); worker->impl_ = NULL; -diff --git a/aom_util/aom_thread.h b/aom_util/aom_thread.h -index 8d04312..efbed78 100644 ---- a/aom_util/aom_thread.h -+++ b/aom_util/aom_thread.h -@@ -32,6 +32,7 @@ - #include // NOLINT - #include // NOLINT - typedef HANDLE pthread_t; -+typedef int pthread_attr_t; - typedef CRITICAL_SECTION pthread_mutex_t; - - #if _WIN32_WINNT < 0x0600 diff --git a/wheelbuild/config.sh b/wheelbuild/config.sh index dc3e366..54e899d 100644 --- a/wheelbuild/config.sh +++ b/wheelbuild/config.sh @@ -289,8 +289,12 @@ EOF -DAVIF_CODEC_AOM=ON -DAVIF_LOCAL_AOM=ON \ -DAVIF_CODEC_DAV1D=ON -DAVIF_LOCAL_DAV1D=ON \ -DENABLE_NASM=ON \ - "${LIBAVIF_CMAKE_FLAGS[@]}" \ - && ninja -v install/strip) + "${LIBAVIF_CMAKE_FLAGS[@]}") + if [ -n "$IS_ALPINE" ]; then + (cd libavif-$LIBAVIF_VERSION/ext/aom \ + && patch -p1 -i $CONFIG_DIR/aom-fix-stack-size.patch) + fi + (cd libavif-$LIBAVIF_VERSION/build && ninja -v install/strip) group_end }