git: 18d2762dc269 - main - x11-wm/awesome: Fix build with clang14 (CURRENT)

From: Alexandre C. Guimarães <rigoletto_at_FreeBSD.org>
Date: Sat, 22 Oct 2022 19:14:10 UTC
The branch main has been updated by rigoletto:

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

commit 18d2762dc269d461fb51ee0235b8b8b1c212190b
Author:     Alexandre C. Guimarães <rigoletto@FreeBSD.org>
AuthorDate: 2022-10-22 19:12:24 +0000
Commit:     Alexandre C. Guimarães <rigoletto@FreeBSD.org>
CommitDate: 2022-10-22 19:12:24 +0000

    x11-wm/awesome: Fix build with clang14 (CURRENT)
    
    PR:             267119
    Reported by:    Jonathan Reynolds <jreynolds1729@gmail.com>
---
 x11-wm/awesome/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x11-wm/awesome/Makefile b/x11-wm/awesome/Makefile
index c725dee084d1..971c078eab2d 100644
--- a/x11-wm/awesome/Makefile
+++ b/x11-wm/awesome/Makefile
@@ -63,5 +63,9 @@ post-patch:
 	# Ref https://github.com/awesomeWM/awesome/issues/1377
 	@${REINPLACE_CMD} -e "/COMMAND lua/ s,lua,${LUA_CMD}," \
 		${WRKSRC}/awesomeConfig.cmake
+	# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267119
+	# Fix build with clang14
+	@${REINPLACE_CMD} -e "s/-export-dynamic/\"-Xlinker -E\"/" \
+		${WRKSRC}/CMakeLists.txt
 
 .include <bsd.port.post.mk>