svn commit: r390090 - branches/2015Q2/math/tomsfastmath

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Jun 19 00:24:06 UTC 2015


Author: amdmi3
Date: Fri Jun 19 00:24:05 2015
New Revision: 390090
URL: https://svnweb.freebsd.org/changeset/ports/390090

Log:
  MFH: r390088
  
  - Fix build on i386
  
  Approved by:	ports-secteam (zi)

Modified:
  branches/2015Q2/math/tomsfastmath/Makefile
Directory Properties:
  branches/2015Q2/   (props changed)

Modified: branches/2015Q2/math/tomsfastmath/Makefile
==============================================================================
--- branches/2015Q2/math/tomsfastmath/Makefile	Fri Jun 19 00:13:25 2015	(r390089)
+++ branches/2015Q2/math/tomsfastmath/Makefile	Fri Jun 19 00:24:05 2015	(r390090)
@@ -11,13 +11,21 @@ COMMENT=	Portable fixed precision math l
 
 BROKEN_powerpc=	internal compiler error at src/mul/fp_mul_comba_48.c:398
 
-USES=		gmake tar:bzip2
+USES=		compiler:features gmake tar:bzip2
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 MAKEFILE=	makefile
 ALL_TARGET=	default
 
 PLIST_FILES=	include/tfm.h lib/libtfm.a
 
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == i386
+# on clang:
+# src/mul/fp_mul_comba.c:349:11: error: inline assembly requires more registers than available
+USE_GCC=	yes
+.endif
+
 # Unbreak against Clang ("cc" is not a register)
 post-patch:
 	@${REINPLACE_CMD} -e 's,"%cc","cc",' \
@@ -25,4 +33,4 @@ post-patch:
 		${WRKSRC}/src/mul/fp_mul_comba.c \
 		${WRKSRC}/src/sqr/fp_sqr_comba.c
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-branches mailing list