Date: Fri, 1 Oct 2021 15:37:07 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9bec8e98bafd - main - math/mpdecimal: actually fix build on GCC architectures Message-ID: <202110011537.191Fb7dF097765@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=9bec8e98bafddba76f6397c96517ffdcd9a794fa commit 9bec8e98bafddba76f6397c96517ffdcd9a794fa Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-10-01 15:29:48 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-10-01 15:29:48 +0000 math/mpdecimal: actually fix build on GCC architectures configure script is written so that the compiler binary is used for linking. --- math/mpdecimal/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/math/mpdecimal/Makefile b/math/mpdecimal/Makefile index 8149011f6c2a..a5d59a202441 100644 --- a/math/mpdecimal/Makefile +++ b/math/mpdecimal/Makefile @@ -20,8 +20,14 @@ PORTDOCS= libmpdec++/* libmpdec/* OPTIONS_DEFINE= DOCS +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == gcc +CONFIGURE_ARGS= LD="${CC}" LDXX="${CXX}" +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec.so.${DISTVERSION} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmpdec++.so.${DISTVERSION} -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110011537.191Fb7dF097765>