Bug 196155

Summary: graphics/freeglut: fix build on mips, remove .la file, strip library
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: freebsd-x11 (Nobody) <x11>
Status: Closed FIXED    
Severity: Affects Many People CC: emaste, kwm, mizhka
Priority: --- Flags: bugzilla: maintainer-feedback? (x11)
Version: Latest   
Hardware: mips   
OS: Any   
Attachments:
Description Flags
Patch
none
Error log none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2014-12-20 13:55:34 UTC
Created attachment 150801 [details]
Patch

Freeglut doesn't build on MIPS (full log attached):

/usr/bin/ld: undefined reference to symbol `sin@@FBSD_1.0' (try adding -lm)
//lib/libm.so.5: could not read symbols: Bad value

Adding -lm to LDFLAGS fixes this.

While here, drop .la file and strip library.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-20 13:55:34 UTC
Auto-assigned to maintainer x11@FreeBSD.org
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2014-12-20 13:56:12 UTC
Created attachment 150802 [details]
Error log
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-04-22 23:46:19 UTC
A commit references this bug:

Author: amdmi3
Date: Wed Apr 22 23:45:50 UTC 2015
New revision: 384543
URL: https://svnweb.freebsd.org/changeset/ports/384543

Log:
  - Fix build on mips:

  /usr/bin/ld: undefined reference to symbol `sin@@FBSD_1.0' (try adding -lm)

  PR:		196155 (partial)
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (x11)
  Approved by:	portmgr blanket

Changes:
  head/graphics/freeglut/Makefile
Comment 4 Ed Maste freebsd_committer freebsd_triage 2015-05-19 14:44:19 UTC
This is now fixed?
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2015-05-19 19:06:25 UTC
I've just committed remaining bits.
Comment 6 commit-hook freebsd_committer freebsd_triage 2015-05-19 19:07:02 UTC
A commit references this bug:

Author: amdmi3
Date: Tue May 19 19:06:07 UTC 2015
New revision: 386805
URL: https://svnweb.freebsd.org/changeset/ports/386805

Log:
  - Drop .la file
  - Strip library
  - Add LICENSE_FILE

  PR:		196155
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (x11, 6 months)

Changes:
  head/graphics/freeglut/Makefile
  head/graphics/freeglut/pkg-plist