git: 9bec8e98bafd - main - math/mpdecimal: actually fix build on GCC architectures
Piotr Kubaj
pkubaj at FreeBSD.org
Fri Oct 1 15:37:08 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9bec8e98bafddba76f6397c96517ffdcd9a794fa
commit 9bec8e98bafddba76f6397c96517ffdcd9a794fa
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-10-01 15:29:48 +0000
Commit: Piotr Kubaj <pkubaj at 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>
More information about the dev-commits-ports-all
mailing list