diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-08-09 01:49:55 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-08-09 01:49:55 +0000 |
commit | 2070f30547394c8eb3852bef673eea7a1a42c1cd (patch) | |
tree | 533f7d7a3dfda58f8f76250a72dabeae67fa5dfb | |
parent | - Fix build under 10-CURRENT when using OpenSSL, chasing r254107 (OpenSSL bug... (diff) |
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.
Notes
Notes:
svn path=/head/; revision=324413
-rw-r--r-- | math/xblas/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/math/xblas/Makefile b/math/xblas/Makefile index df61cf4fbf70..9f5127bfe00f 100644 --- a/math/xblas/Makefile +++ b/math/xblas/Makefile @@ -13,7 +13,6 @@ COMMENT= Extra Precise Basic Linear Algebra Subroutines (BLAS) 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 |