git: 233e8c358443 - main - devel/p5-Algorithm-Cluster: fix build on i386
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Jun 9 00:31:17 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=233e8c358443cf32cb95ed9e68945529ad5b9e27
commit 233e8c358443cf32cb95ed9e68945529ad5b9e27
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-06-09 00:31:08 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-06-09 00:31:08 +0000
devel/p5-Algorithm-Cluster: fix build on i386
It's enough to simply use ld.bfd for linking, but ports framework forces ports with USE_PERL5=configure to use ${CC} as LD.
---
devel/p5-Algorithm-Cluster/Makefile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/devel/p5-Algorithm-Cluster/Makefile b/devel/p5-Algorithm-Cluster/Makefile
index 5ddd00973f97..bad13bafc0a3 100644
--- a/devel/p5-Algorithm-Cluster/Makefile
+++ b/devel/p5-Algorithm-Cluster/Makefile
@@ -13,15 +13,17 @@ COMMENT= Perl interface to C clustering library
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
-.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
-BROKEN_i386= ld: error: can't create dynamic relocation R_386_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output #'
-.endif
-
USES= perl5
USE_PERL5= configure
MAKE_JOBS_UNSAFE= yes
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == i386 && ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
+USE_GCC= yes
+.endif
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Algorithm/Cluster/Cluster.so
More information about the dev-commits-ports-all
mailing list