mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
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.
This commit is contained in:
parent
8bb5eb896f
commit
233e8c3584
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user