summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/openal-soft/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/audio/openal-soft/Makefile b/audio/openal-soft/Makefile
index da0b892912a4..8fb063e3783b 100644
--- a/audio/openal-soft/Makefile
+++ b/audio/openal-soft/Makefile
@@ -15,8 +15,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS= openal-200[0-9]*
USES= cmake compiler:c11 tar:bzip2
+USE_BINUTILS= yes
USE_LDCONFIG= yes
-LLD_UNSAFE= yes
+
CMAKE_ARGS= -DCMAKE_INSTALL_DATADIR:STRING="${PREFIX}/etc"
CMAKE_OFF= ALSOFT_BACKEND_ALSA \
ALSOFT_DLOPEN \
@@ -25,7 +26,12 @@ CMAKE_OFF= ALSOFT_BACKEND_ALSA \
ALSOFT_REQUIRE_QSA
CMAKE_ON= ALSOFT_BACKEND_WAVE \
ALSOFT_UTILS
-LDFLAGS+= -Wl,--as-needed # do not link with librt and libdl
+
+# use gold linker due to some problems with ld.bfd on 12-STABLE,
+# cf. PR 235603
+# do not link with librt and libdl.
+LDFLAGS+= -fuse-ld=gold \
+ -Wl,--as-needed
OPTIONS_DEFINE= EXAMPLES CONFIG JACK OSS PORTAUDIO PULSEAUDIO SDL SNDIO
OPTIONS_DEFAULT= OSS