Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2021 16:45:33 GMT
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9b39ff261709 - main - audio/tagutil: Unbreak on 11.x
Message-ID:  <202105141645.14EGjXXs045787@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tobik:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b39ff261709ccda8ce2ea3e700a84faf3077a3b

commit 9b39ff261709ccda8ce2ea3e700a84faf3077a3b
Author:     Tobias Kortkamp <tobik@FreeBSD.org>
AuthorDate: 2021-05-13 12:39:03 +0000
Commit:     Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2021-05-14 16:44:43 +0000

    audio/tagutil: Unbreak on 11.x
    
    /usr/bin/ld: undefined reference to symbol `__cxa_demangle@@CXXABI_1.3' (try adding -lcxxrt)
    
    It links fine with lld.
---
 audio/tagutil/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/audio/tagutil/Makefile b/audio/tagutil/Makefile
index bade2495e9e4..3df658e2ddcf 100644
--- a/audio/tagutil/Makefile
+++ b/audio/tagutil/Makefile
@@ -37,10 +37,11 @@ OGG_LIB_DEPENDS=\
 	libvorbisfile.so:audio/libvorbis \
 	libogg.so:audio/libogg
 OGG_CMAKE_OFF=	-DWITHOUT_OGGVORBIS=yes
-#.if exists(/usr/lib/libc++.so) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
-#TAGLIB_BROKEN=		ld: undefined reference to symbol '__cxa_demangle@@CXXABI_1.3' (try adding -lcxxrt)
-#.endif
 TAGLIB_LIB_DEPENDS=	libtag_c.so:audio/taglib
 TAGLIB_CMAKE_OFF=	-DWITHOUT_TAGLIB=yes
+# For FreeBSD 11: ld: undefined reference to symbol `__cxa_demangle@@CXXABI_1.3' (try adding -lcxxrt)
+.if exists(/usr/bin/ld.lld) && ${/usr/bin/ld:L:tA} != /usr/bin/ld.lld
+TAGLIB_LDFLAGS=		-fuse-ld=lld
+.endif
 
 .include <bsd.port.mk>



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