aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-10-01 15:29:48 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-10-01 15:29:48 +0000
commit9bec8e98bafddba76f6397c96517ffdcd9a794fa (patch)
tree1dcf0fef5b674ce57f4c17cc6f259a7658f3dfad /math
parentcdaee992925e52c33d4b2208cf859ad253de14e8 (diff)
downloadports-9bec8e98bafddba76f6397c96517ffdcd9a794fa.tar.gz
ports-9bec8e98bafddba76f6397c96517ffdcd9a794fa.zip
math/mpdecimal: actually fix build on GCC architectures
configure script is written so that the compiler binary is used for linking.
Diffstat (limited to 'math')
-rw-r--r--math/mpdecimal/Makefile8
1 files changed, 7 insertions, 1 deletions
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>