Date: Mon, 21 Oct 2019 14:40:33 +0000 (UTC) From: Vasil Dimov <vd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r515111 - branches/2019Q4/net-p2p/qtum Message-ID: <201910211440.x9LEeXR9040878@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vd Date: Mon Oct 21 14:40:33 2019 New Revision: 515111 URL: https://svnweb.freebsd.org/changeset/ports/515111 Log: MFH: r514348 net-p2p/qtum: fix compilation on FreeBSD 11.x Approved by: portmgr (build fix blanket) Modified: branches/2019Q4/net-p2p/qtum/Makefile Directory Properties: branches/2019Q4/ (props changed) Modified: branches/2019Q4/net-p2p/qtum/Makefile ============================================================================== --- branches/2019Q4/net-p2p/qtum/Makefile Mon Oct 21 14:34:11 2019 (r515110) +++ branches/2019Q4/net-p2p/qtum/Makefile Mon Oct 21 14:40:33 2019 (r515111) @@ -27,7 +27,6 @@ USES= autoreconf bdb:5+ compiler:c++14-lang gmake lib GNU_CONFIGURE= yes CONFIGURE_ENV+= BDB_CFLAGS="-I${BDB_INCLUDE_DIR}" \ BDB_LIBS="-L${BDB_LIB_DIR} -l${BDB_LIB_CXX_NAME}" \ - CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" # * Man pages have not been adjusted after cloning the Bitcoin code base. # They are the old Bitcoin man pages, so do not install them. @@ -60,6 +59,17 @@ CONFIGURE_ENV+= CRYPTO_CFLAGS="-I${OPENSSLINC}" \ CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto" \ SSL_CFLAGS="-I${OPENSSLINC}" \ SSL_LIBS="-L${OPENSSLLIB} -lssl" +.endif + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000 +# Force PIC on FreeBSD 11.x because otherwise linking fails: +# /usr/bin/ld: qtum_cli-bitcoin-cli.o: relocation R_X86_64_32 against `a local +# symbol' can not be used when making a shared object; recompile with -fPIC +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -fPIC -DPIC" +post-patch: + ${SED} -i '' -e 's/AC_SUBST(PIE_FLAGS)//' ${WRKSRC}/configure.ac +.else +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" .endif .include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910211440.x9LEeXR9040878>