Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Sep 2023 15:46:32 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: db793044a347 - main - audio/alsa-lib: fix build with lld 17
Message-ID:  <202309211546.38LFkWpH024110@gitrepo.freebsd.org>

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

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

commit db793044a347c8c5a827a6b4b5a2ee9395667e3c
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-09-21 15:25:54 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-09-21 15:46:12 +0000

    audio/alsa-lib: fix build with lld 17
    
    Some symbols in the linker version script Versions.in are only defined when
    --enable-alisp is used at configure time. Suppress errors with lld >= 17 due
    to these undefined symbols.
    
    PR:             273753
    MFH:            2023Q3
---
 audio/alsa-lib/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/audio/alsa-lib/Makefile b/audio/alsa-lib/Makefile
index 26aa34b834be..e4f3ceec6dbf 100644
--- a/audio/alsa-lib/Makefile
+++ b/audio/alsa-lib/Makefile
@@ -27,6 +27,10 @@ TEST_ENV=	${MAKE_ENV} \
 		ALSA_CONFIG_PATH="${FILESDIR}/asound.conf.sample"
 TEST_TARGET=	check
 CPPFLAGS+=	-I${FILESDIR}
+# Some symbols in the linker version script Versions.in are only defined when
+# --enable-alisp is used at configure time. Suppress errors with lld >= 17 due
+# to these undefined symbols.
+LDFLAGS+=	-Wl,--undefined-version
 
 OPTIONS_DEFINE=		PYTHON
 OPTIONS_SUB=		yes



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