git: 0fa10d205ec7 - main - audio/libsidplayfp: force link with pthreads (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sun, 10 Nov 2024 22:23:59 UTC
The branch main has been updated by fluffy:

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

commit 0fa10d205ec7a60c0179a54509dbfd7619ee4168
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-11-10 22:21:12 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-11-10 22:21:12 +0000

    audio/libsidplayfp: force link with pthreads (+)
    
    This fixes runtime error:
    ld-elf.so.1: /usr/local/lib/libsidplayfp.so.6: Undefined symbol "pthread_create"
    
    PR:     282521
---
 audio/libsidplayfp/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/audio/libsidplayfp/Makefile b/audio/libsidplayfp/Makefile
index 1c80a64c1e7f..097ce8592e58 100644
--- a/audio/libsidplayfp/Makefile
+++ b/audio/libsidplayfp/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	libsidplayfp
 DISTVERSION=	2.11.0
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${DISTVERSION}/
 
@@ -21,6 +22,8 @@ CONFIGURE_ARGS=	--disable-static \
 		--with-exsid=no \
 		--with-gcrypt
 
+LDFLAGS+=	-lpthread
+
 INSTALL_TARGET=	install-strip
 
 SIDPLAYFP_SHLIB_VERSION=        6.5.36