svn commit: r448265 - head/lang/gprolog

Tobias C. Berner tcberner at FreeBSD.org
Fri Aug 18 18:41:52 UTC 2017


Author: tcberner
Date: Fri Aug 18 18:41:50 2017
New Revision: 448265
URL: https://svnweb.freebsd.org/changeset/ports/448265

Log:
  Disable machine registers on i386.
  
  Follow debians lead [1] and pass --disable-regs on i386, to fix build with gcc6.
  
  [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852008
  
  PR:		219275

Modified:
  head/lang/gprolog/Makefile

Modified: head/lang/gprolog/Makefile
==============================================================================
--- head/lang/gprolog/Makefile	Fri Aug 18 18:32:25 2017	(r448264)
+++ head/lang/gprolog/Makefile	Fri Aug 18 18:41:50 2017	(r448265)
@@ -36,6 +36,13 @@ OPTIONS_SUB=		yes
 FD_DESC=		Enable finite domain constraint solver
 FD_CONFIGURE_OFF=	--disable-fd-solver
 
+# Disable registers on i386. This fixes build with gcc6.
+# See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=852008
+.include <bsd.port.pre.mk>
+.if ${ARCH} == i386
+CONFIGURE_ARGS=		--disable-regs
+.endif
+
 post-configure:
 	${REINPLACE_CMD} \
 		-E 's|^(INSTALL_PROGRAM *= *install +-s +-m) 555|\1 755|g' \
@@ -51,4 +58,4 @@ post-install-EXAMPLES-off:
 post-install-DOCS-off:
 	${RM} -r ${STAGEDIR}${DOCSDIR}
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list