Bug 237816

Summary: comms/flrig: fix build on powerpc64
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: hamradio (Nobody) <hamradio>
Status: Closed FIXED    
Severity: Affects Only Me CC: hamradio
Priority: --- Flags: bugzilla: maintainer-feedback? (hamradio)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (hamradio)

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