Created attachment 203942 [details] patch Add -L${OPENSSLLIB} -I${OPENSSLINC} only when base OpenSSL isn't used. Explicitly adding -L/usr/lib make ports GCC link to libstdc++ from /usr/lib instead of /usr/local/lib/gcc8. Also, explicitly don't use Lua and Qt5, the port uses it if it's installed. Tested on powerpc64 and amd64.
A commit references this bug: Author: pkubaj Date: Mon May 20 16:42:00 UTC 2019 New revision: 502124 URL: https://svnweb.freebsd.org/changeset/ports/502124 Log: devel/thrift-cpp: fix build with GCC-based architectures Add -L${OPENSSLLIB} -I${OPENSSLINC} only when base OpenSSL isn't used. Explicitly adding -L/usr/lib make ports GCC link to libstdc++ from /usr/lib instead of /usr/local/lib/gcc8. Also, explicitly don't use Lua and Qt5, the port uses it if it's installed. PR: 237506 Approved by: komarov@valerka.net (maintainer timeout), mat (mentor) Differential Revision: https://reviews.freebsd.org/D20287 Changes: head/devel/thrift-cpp/Makefile