Bug 239481

Summary: lang/maude: fix build on GCC architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: val
Priority: --- Flags: val: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (val)

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