svn commit: r390088 - head/math/tomsfastmath
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Jun 19 00:12:04 UTC 2015
Author: amdmi3
Date: Fri Jun 19 00:12:03 2015
New Revision: 390088
URL: https://svnweb.freebsd.org/changeset/ports/390088
Log:
- Fix build on i386
MFH: 2015Q2
Modified:
head/math/tomsfastmath/Makefile
Modified: head/math/tomsfastmath/Makefile
==============================================================================
--- head/math/tomsfastmath/Makefile Thu Jun 18 23:31:54 2015 (r390087)
+++ head/math/tomsfastmath/Makefile Fri Jun 19 00:12:03 2015 (r390088)
@@ -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-all
mailing list