Date: Wed, 9 Jun 2021 00:31:17 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: 233e8c358443 - main - devel/p5-Algorithm-Cluster: fix build on i386 Message-ID: <202106090031.1590VHYP093511@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=233e8c358443cf32cb95ed9e68945529ad5b9e27 commit 233e8c358443cf32cb95ed9e68945529ad5b9e27 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-06-09 00:31:08 +0000 Commit: Piotr Kubaj <pkubaj@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106090031.1590VHYP093511>