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.
lgtm
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