Bug 235976 - math/gfan: fix build with GCC-based architectures
Summary: math/gfan: fix build with GCC-based architectures
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: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 00:02 UTC by Piotr Kubaj
Modified: 2019-02-24 22:11 UTC (History)
2 users (show)

See Also:
salvadore: maintainer-feedback+


Attachments
patch (1.88 KB, patch)
2019-02-24 00:02 UTC, Piotr Kubaj
no flags 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-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