Bug 239481 - lang/maude: fix build on GCC architectures
Summary: lang/maude: fix build on GCC 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: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-27 21:35 UTC by Piotr Kubaj
Modified: 2019-08-29 19:37 UTC (History)
1 user (show)

See Also:
val: maintainer-feedback+


Attachments
patch (1.07 KB, patch)
2019-07-27 21:35 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (val)
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-07-27 21:35:58 UTC
Created attachment 206105 [details]
patch

Don't link unconditinally with $NCURSESLIB. When NCURSESLIB is /usr/lib and the system compiler is base GCC, GCC from ports (currently GCC9) is used. Passing -L/usr/lib makes GCC try to link to base libstdc++ instead the one from ports.

Also add USES=localbase:ldflags.
Comment 1 Val Packett 2019-07-27 23:55:12 UTC
lgtm
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-08-29 19:37:51 UTC
A commit references this bug:

Author: pkubaj
Date: Thu Aug 29 19:37:17 UTC 2019
New revision: 510181
URL: https://svnweb.freebsd.org/changeset/ports/510181

Log:
  lang/maude: fix build on GCC architectures

  Don't link unconditinally with $NCURSESLIB. When NCURSESLIB is /usr/lib and the system compiler is base GCC, GCC from ports (currently GCC9) is used. Passing -L/usr/lib makes GCC try to link to base libstdc++ instead the one from ports.

  Also add USES=localbase:ldflags.

  PR:		239481
  Approved by:	linimon (mentor), greg@unrelenting.technology (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D21397

Changes:
  head/lang/maude/Makefile