mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
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
@ -13,7 +13,6 @@ COMMENT= Extra Precise Basic Linear Algebra Subroutines (BLAS)
|
|||||||
LICENSE= BSD
|
LICENSE= BSD
|
||||||
|
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
MAKE_JOBS_UNSAFE= yes
|
|
||||||
|
|
||||||
CFLAGS+= ${MANGLING}
|
CFLAGS+= ${MANGLING}
|
||||||
HDIR= include/xblas
|
HDIR= include/xblas
|
||||||
@ -66,6 +65,9 @@ post-patch:
|
|||||||
@${CP} -af ${WRKSRC} ${WRKSRC}_STATIC
|
@${CP} -af ${WRKSRC} ${WRKSRC}_STATIC
|
||||||
.endif
|
.endif
|
||||||
@${PRINTF} "\nCFLAGS+=\t${PICFLAG}\n" >> ${WRKSRC}/make.inc
|
@${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
|
do-build: build-shared build-static
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user