Bug 240068

Summary: devel/p5-Data-MessagePack-Stream: fix build on armv7
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Jun Kuriyama <kuriyama>
Status: Closed FIXED    
Severity: Affects Only Me CC: kuriyama
Priority: --- Flags: bugzilla: maintainer-feedback? (kuriyama)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (kuriyama)

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-08-24 09:34:19 UTC
Created attachment 206844 [details]
patch

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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-08-31 11:14:41 UTC
Approved by mentor (pending maintainer action).
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-09-16 11:19:34 UTC
A commit references this bug:

Author: pkubaj
Date: Mon Sep 16 11:18:55 UTC 2019
New revision: 512163
URL: https://svnweb.freebsd.org/changeset/ports/512163

Log:
  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)

Changes:
  head/devel/p5-Data-MessagePack-Stream/Makefile