Skip to content

build-sys: Fix macOS build

I managed to build the newest pulseaudio for macOS Monterey and apple M1 processor. Pulseaudio is working fine with the following setting.

Linux ---module-link-tunnel-new---> Mac ---module-coreaudio-device---> Speaker

Changes are as follows.

  • Enable macOS specific modules (module-bonjour-publish, module-coreaudio-detect and module-coreaudio-device)
  • Correctly set PA_SOEXT (.so, .dylib and .dll)
  • Build poll-posix.c and semaphore-osx.c
  • Drop linker flag -Wl,-z,nodelete on Darwin
  • Drop linker flag -Wl,--no-undefined on Darwin
  • Prefer to clock_gettime over compat impl for old Darwin
  • Disable SCM credential on Darwin

Merge request reports

Loading