Bug 237816 - comms/flrig: fix build on powerpc64
Summary: comms/flrig: fix build on powerpc64
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: hamradio (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-09 20:02 UTC by Piotr Kubaj
Modified: 2019-05-10 11:16 UTC (History)
1 user (show)

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


Attachments
patch (363 bytes, text/plain)
2019-05-09 20:02 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (hamradio)
Details

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-05-09 20:02:13 UTC
Created attachment 204293 [details]
patch

Add -mminimal-toc to CFLAGS on powerpc64 to fix linking:
/usr/bin/ld: rigs/flrig-TS950.o(.text+0x1c40): sibling call optimization to `_ZN7rigbaseD2Ev' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN7rigbaseD2Ev' extern
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-05-10 11:16:38 UTC
A commit references this bug:

Author: pkubaj
Date: Fri May 10 11:16:16 UTC 2019
New revision: 501167
URL: https://svnweb.freebsd.org/changeset/ports/501167

Log:
  comms/flrig: fix build on powerpc64

  Add -mminimal-toc to CFLAGS on powerpc64 to fix linking:
  /usr/bin/ld: rigs/flrig-TS950.o(.text+0x1c40): sibling call optimization to `_ZN7rigbaseD2Ev' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `_ZN7rigbaseD2Ev' extern

  PR:		237816
  Approved by:	tcberner (mentor), db (maintainer, via email)
  Differential Revision:	https://reviews.freebsd.org/D20217

Changes:
  head/comms/flrig/Makefile