svn commit: r492771 - head/audio/openal-soft

Tobias Kortkamp tobik at FreeBSD.org
Tue Feb 12 10:39:40 UTC 2019


Author: tobik
Date: Tue Feb 12 10:39:39 2019
New Revision: 492771
URL: https://svnweb.freebsd.org/changeset/ports/492771

Log:
  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 <transitive at gmail.com>

Modified:
  head/audio/openal-soft/Makefile

Modified: head/audio/openal-soft/Makefile
==============================================================================
--- head/audio/openal-soft/Makefile	Tue Feb 12 10:25:44 2019	(r492770)
+++ head/audio/openal-soft/Makefile	Tue Feb 12 10:39:39 2019	(r492771)
@@ -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


More information about the svn-ports-head mailing list