git: 2b108b1c3aab - main - cad/klayout: Fix build with Ruby 3.x

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Tue, 29 Mar 2022 07:29:55 UTC
The branch main has been updated by yasu:

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

commit 2b108b1c3aabd0d1ac8dbaa7dc5e5995218c94bf
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-03-09 00:19:19 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-03-29 07:29:13 +0000

    cad/klayout: Fix build with Ruby 3.x
    
    PR:             262432
    Approved by:    maintainer timeout
---
 cad/klayout/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cad/klayout/Makefile b/cad/klayout/Makefile
index ef8869016fec..3c3b860e4ea2 100644
--- a/cad/klayout/Makefile
+++ b/cad/klayout/Makefile
@@ -22,7 +22,7 @@ USE_QT=		core buildtools designer gui multimedia network printsupport \
 		qmake sql svg testlib uitools widgets xml xmlpatterns
 USE_LDCONFIG=	yes
 
-CXXFLAGS+=	-fPIC -I${LOCALBASE}/include/qt5 \
+CXXFLAGS+=	-fdeclspec -fPIC -I${LOCALBASE}/include/qt5 \
 		${QT5MODULES:S,^,-I${LOCALBASE}/include/qt5/Qt,}
 LDFLAGS+=	${LIBS} ${QT5MODULES:S,^,-lQt5,} \
 		-L${LOCALBASE}/lib/qt5 -lpthread