Date: Fri, 9 Aug 2013 01:49:56 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324413 - head/math/xblas Message-ID: <201308090149.r791nuPF063480@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308090149.r791nuPF063480>