svn commit: r324413 - head/math/xblas
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Aug 9 01:49:56 UTC 2013
Author: danfe
Date: Fri Aug 9 01:49:55 2013
New Revision: 324413
URL: http://svnweb.freebsd.org/changeset/ports/324413
Log:
Fix parallel (-jX) builds. This cuts down the build time from 1:07 down to
just 21 seconds on my quad-core o'clocked Q9550.
Modified:
head/math/xblas/Makefile
Modified: head/math/xblas/Makefile
==============================================================================
--- head/math/xblas/Makefile Thu Aug 8 23:58:12 2013 (r324412)
+++ head/math/xblas/Makefile Fri Aug 9 01:49:55 2013 (r324413)
@@ -13,7 +13,6 @@ COMMENT= Extra Precise Basic Linear Alge
LICENSE= BSD
USE_LDCONFIG= yes
-MAKE_JOBS_UNSAFE= yes
CFLAGS+= ${MANGLING}
HDIR= include/xblas
@@ -66,6 +65,9 @@ post-patch:
@${CP} -af ${WRKSRC} ${WRKSRC}_STATIC
.endif
@${PRINTF} "\nCFLAGS+=\t${PICFLAG}\n" >> ${WRKSRC}/make.inc
+# Fix parallel (-jX) builds
+ @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
+ -E 's/cd (.+) && (\$$\(MAKE\))/\2 -C \1/'
do-build: build-shared build-static
More information about the svn-ports-head
mailing list