Bug 235976

Summary: math/gfan: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me CC: linimon, salvadore
Priority: --- Flags: salvadore: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-02-24 00:02:25 UTC
Created attachment 202304 [details]
patch

This port requires C++11-compatible compiler to build, so add USES=compiler:c++11-lang to fix build on GCC architectures.

Also add LDFLAGS to the linking command so that it links against ports libstdc++.

While here, add USES=localbase.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Lorenzo Salvadore freebsd_committer freebsd_triage 2019-02-24 12:54:56 UTC
Comment on attachment 202304 [details]
patch

Looks fine. Thank you very much for your work.

I tested on poudriere on 11.2-RELEASE i386/amd64 and 12.0-RELEASE i386/amd64 (with clang).
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-02-24 22:11:22 UTC
A commit references this bug:

Author: linimon
Date: Sun Feb 24 22:10:43 UTC 2019
New revision: 493819
URL: https://svnweb.freebsd.org/changeset/ports/493819

Log:
  This port requires a C++11-compatible compiler to build, so add
  USES=compiler:c++11-lang to fix build on GCC-based architectures.

  Also add LDFLAGS to the linking command so that it links against ports
  libstdc++.

  While here, add USES=localbase.

  PR:		235976
  Submitted by:	Piotr Kubaj
  Approved by:	maintainer

Changes:
  head/math/gfan/Makefile
  head/math/gfan/files/patch-Makefile