Bug 240068 - devel/p5-Data-MessagePack-Stream: fix build on armv7
Summary: devel/p5-Data-MessagePack-Stream: fix build on armv7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-24 09:34 UTC by Piotr Kubaj
Modified: 2019-09-16 11:19 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kuriyama)


Attachments
patch (255 bytes, patch)
2019-08-24 09:34 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (kuriyama)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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