From deeb46784c3acc222f015bf47371c0844fd511c2 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Tue, 12 Feb 2019 10:39:39 +0000 Subject: audio/openal-soft: Use ld.gold instead of ld.bfd openal-soft has stopped linking on 12-STABLE with ld.bfd. As a workaround use ld.gold for now until we can discover why that happens all of a sudden. PR: 235603 Reported by: Robert Cina --- audio/openal-soft/Makefile | 10 ++++++++-- 1 file 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 -- cgit