git: bd9c318712cc - main - astro/gpstk: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 26 Jul 2023 17:47:18 UTC
The branch main has been updated by bofh:

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

commit bd9c318712cc0c8f075318591710f718f554b62a
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-26 17:31:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-26 17:47:06 +0000

    astro/gpstk: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 astro/gpstk/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/astro/gpstk/Makefile b/astro/gpstk/Makefile
index 8c1506c0d2c3..cdbf52adc14d 100644
--- a/astro/gpstk/Makefile
+++ b/astro/gpstk/Makefile
@@ -12,21 +12,22 @@ LICENSE_COMB=	multi
 
 USES=		cmake compiler:c++11-lang
 USE_CXXSTD=	c++14
-USE_LDCONFIG=	yes
-
 USE_GITHUB=	yes
 GH_ACCOUNT=	SGL-UT
 GH_PROJECT=	GPSTk
+USE_LDCONFIG=	yes
+
+MAKE_ENV=	CXXFLAGS="${CXXFLAGS}"
 
 DOCS=		*.md
 EXAMPLES=	*
 
-OPTIONS_DEFINE=	DOCS EXAMPLES
-OPTIONS_SUB=	yes
-
 PLIST_SUB=	PORTVERSION=${PORTVERSION} \
 		SHLIB_VER=${PORTVERSION:R}
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_SUB=	yes
+
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}