ports/devel/p5-Data-MessagePack-Stream/Makefile
Piotr Kubaj 9bcaba9a18 devel/p5-Data-MessagePack-Stream: fix build on armv7
armv7 needs -fPIC in CFLAGS to build this port:
/usr/bin/ld: error: can't create dynamic relocation R_ARM_ABS32 against local symbol in readonly segment; recompile object files with -fPIC
>>> defined in msgpack-0.5.7/src/.libs/libmsgpack.a(unpack.o)
>>> referenced by unpack.c
>>>               unpack.o:(template_execute) in archive msgpack-0.5.7/src/.libs/libmsgpack.a

PR:		240068
Approved by:	kuriyama (maintainer timeout), linimon (mentor)
2019-09-16 11:18:54 +00:00

29 lines
864 B
Makefile

# $FreeBSD$
PORTNAME= Data-MessagePack-Stream
PORTVERSION= 0.07
PORTREVISION= 2
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension for yet another messagepack streaming deserializer
BROKEN_aarch64= fails to link: can't create dynamic relocation R_AARCH64_ABS64 against local symbol in readonly segment
.if ${/usr/bin/ld:L:tA} == /usr/bin/ld.lld
BROKEN_i386= ld: error: relocation R_386_PC32 cannot be used against symbol malloc
.endif
BROKEN_mips= fails to build: atomic operations are not found
BROKEN_mips64= fails to build: atomic operations are not found
BROKEN_sparc64= fails to build: atomic operations are not found
BUILD_DEPENDS= p5-Data-MessagePack>0:devel/p5-Data-MessagePack
USES= perl5
USE_PERL5= configure
MAKE_JOBS_UNSAFE= yes
CFLAGS_armv7= -fPIC
.include <bsd.port.mk>