Date: Sun, 22 Dec 2019 19:23:51 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520653 - head/ports-mgmt/portal Message-ID: <201912221923.xBMJNplf035056@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sun Dec 22 19:23:51 2019 New Revision: 520653 URL: https://svnweb.freebsd.org/changeset/ports/520653 Log: ports-mgmt/portal: fix build on GCC architectures Only add -L${NCURSESLIB} when ${NCURSESLIB} isn't /usr/lib to prevent linking with base libstdc++ on GCC architectures. PR: 240707 Approved by: culot (maintainer) Modified: head/ports-mgmt/portal/Makefile Modified: head/ports-mgmt/portal/Makefile ============================================================================== --- head/ports-mgmt/portal/Makefile Sun Dec 22 19:21:45 2019 (r520652) +++ head/ports-mgmt/portal/Makefile Sun Dec 22 19:23:51 2019 (r520653) @@ -10,8 +10,6 @@ COMMENT= Front-end to pkg(8) LICENSE= BSD2CLAUSE -BROKEN_powerpc64= fails to build: /usr/local/lib/gcc6/include/c++/thread:189: undefined reference to `std::thread::_State::~_State()' - PLIST_FILES= bin/${PORTNAME} \ man/man1/${PORTNAME}.1.gz @@ -19,11 +17,16 @@ USE_GITHUB= yes GH_ACCOUNT= culot USES= ncurses compiler:c++11-lib + +.include <bsd.port.pre.mk> + +.if ${NCURSESLIB} != /usr/lib CFLAGS+= -I${NCURSESINC} LDFLAGS+= -L${NCURSESLIB} +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912221923.xBMJNplf035056>