git: eab31cc22228 - main - multimedia/libxine: Fix binutils 2.39 regression

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 07 Nov 2022 18:39:34 UTC
The branch main has been updated by cy:

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

commit eab31cc222286b7ba79a629da7200b0bffe63f03
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-10-25 04:12:09 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-11-07 18:38:55 +0000

    multimedia/libxine: Fix binutils 2.39 regression
    
    Fix build under 2.39.
    
    PR:             265917
    Obtained from:  https://www.linuxquestions.org/questions/slackware-14/\
                    regression-on-current-with-xine-lib-4175715727/
---
 multimedia/libxine/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/multimedia/libxine/Makefile b/multimedia/libxine/Makefile
index e1b4f51622f4..dbbf06d45dae 100644
--- a/multimedia/libxine/Makefile
+++ b/multimedia/libxine/Makefile
@@ -170,6 +170,8 @@ pre-configure-GNUTLS-off:
 		${WRKSRC}/configure
 
 post-patch:
+	@${REINPLACE_CMD} -e '/xine_set_flags/s/XINE_PROTECTED//' \
+		${WRKSRC}/include/xine.h
 .if ${COMPILER_TYPE} == "clang"
 	@${REINPLACE_CMD} -e 's|-fno-rename-registers||' \
 		${WRKSRC}/src/libw32dll/Makefile.in