svn commit: r515111 - branches/2019Q4/net-p2p/qtum

Vasil Dimov vd at FreeBSD.org
Mon Oct 21 14:40:34 UTC 2019


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>


More information about the svn-ports-branches mailing list