audio/openal-soft: Disable C11 threads

Use POSIX threads instead to avoid undefined symbols. Applications may
not start after the last update with errors such as:

ld-elf.so.1: /usr/local/lib/libopenal.so.1: Undefined symbol
"tss_create"

Reported by:	VVD on #freebsd-desktop
This commit is contained in:
Jason E. Hale 2025-02-08 00:25:14 -05:00
parent 40a0852d09
commit bdd363e1be

View file

@ -1,5 +1,6 @@
PORTNAME= openal-soft
PORTVERSION= 1.24.2
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= https://openal-soft.org/openal-releases/
@ -23,6 +24,8 @@ CMAKE_ON= ALSOFT_BACKEND_WAVE
CMAKE_OFF= ALSOFT_BACKEND_ALSA ALSOFT_DLOPEN ALSOFT_EXAMPLES \
ALSOFT_REQUIRE_SOLARIS
# Use pthread instead of C11 threads
CFLAGS+= -D__STDC_NO_THREADS__
# do not link with librt and libdl.
LDFLAGS+= -Wl,--as-needed
LDFLAGS_i386= -Wl,-z,notext