Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Feb 2019 10:39:39 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492771 - head/audio/openal-soft
Message-ID:  <201902121039.x1CAddk4042642@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902121039.x1CAddk4042642>