Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Fix libexecinfo includes. (#496)

Peter Sobota3f824ff3026
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2241de1..89de0fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -261,7 +261,10 @@ if(DEFINED ENV{CIBW_BUILD} AND "$ENV{CIBW_BUILD}" MATCHES "musllinux")
add_compile_definitions(
_NL_IDENTIFICATION_LANGUAGE=0x42
_NL_IDENTIFICATION_TERRITORY=0x43
+ _LARGEFILE64_SOURCE
)
+ # musl doesn't provide execinfo.h; use our stub in vendors/
+ include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/vendors)
endif()
# Rubber Band library flags
diff --git a/pyproject.toml b/pyproject.toml
index 4d88e09..9078086 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,7 +27,7 @@ archs = ["auto"]
# Use apk instead of yum when building on Alpine Linux
# (Note: this is experimental, as most VSTs require glibc and thus Alpine Linux isn't that useful)
select = "*-musllinux*"
-before-all = "apk add libsndfile libx11-dev libxrandr-dev libxinerama-dev libxrender-dev libxcomposite-dev libxinerama-dev libxcursor-dev freetype-dev libexecinfo-dev alsa-lib-dev"
+before-all = "apk add libsndfile libx11-dev libxrandr-dev libxinerama-dev libxrender-dev libxcomposite-dev libxinerama-dev libxcursor-dev freetype-dev alsa-lib-dev"
[project]
name = "pedalboard"