Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 08:00:48 +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: r518709 - head/audio/openal-soft
Message-ID:  <201911300800.xAU80mDQ021398@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Nov 30 08:00:48 2019
New Revision: 518709
URL: https://svnweb.freebsd.org/changeset/ports/518709

Log:
  audio/openal-soft: Limit LLD_UNSAFE to FreeBSD 12.0 again
  
  We can unbreak the build with lld on i386 on FreeBSD > 12.0 by
  passing -Wl,-z,notext to the linker.  It should not make any
  difference on older releases.
  
  PR:		242307
  Tested by:	jbeich

Modified:
  head/audio/openal-soft/Makefile

Modified: head/audio/openal-soft/Makefile
==============================================================================
--- head/audio/openal-soft/Makefile	Sat Nov 30 07:31:53 2019	(r518708)
+++ head/audio/openal-soft/Makefile	Sat Nov 30 08:00:48 2019	(r518709)
@@ -23,7 +23,11 @@ CMAKE_ON=	ALSOFT_BACKEND_WAVE ALSOFT_UTILS
 
 # do not link with librt and libdl.
 LDFLAGS+=	-Wl,--as-needed
+LDFLAGS_i386=	-Wl,-z,notext
+# XXX Drop after FreeBSD 12.0 EOL
+.if exists(/usr/lib/clang/6.0.1)
 LLD_UNSAFE=	yes
+.endif
 
 PLIST_SUB=	SOVERSION=${PORTVERSION}
 



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