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.
This commit is contained in:
parent
f82694aa19
commit
2070f30547
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324413
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue