diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-03-09 18:56:12 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-03-09 18:56:12 +0000 |
commit | f4439315146332e60de7fce807b0694e791934b7 (patch) | |
tree | a257b6d6685091e60818c11511410f61d1dce736 | |
parent | 0cf2a827cb88734eda6acac69295f29c599ff06c (diff) | |
download | ports-f4439315146332e60de7fce807b0694e791934b7.tar.gz ports-f4439315146332e60de7fce807b0694e791934b7.zip |
MFH: r435782
Fix MAKE_JOBS support.
- This port uses ax_am_jobserver [1] which uses CPU_COUNT from
ax_count_cpus [2] to force -j to match the number of CPUs in
the system rather than the amount already specified by -j to
'gmake all'. The ax_count_cpus script is broken on FreeBSD
and the ax_am_jobserver code has no current support for
FreeBSD and uses a bashism, thus this always builds with 1
CPU. Forcing ax_am_jobserver to use our MAKE_JOBS_NUMBER
value fixes the problem.
I plan to do an exp-run to fix this for the entire tree.
[1] https://www.gnu.org/software/autoconf-archive/ax_am_jobserver.html
[2] https://www.gnu.org/software/autoconf-archive/ax_count_cpus.html
Approved by: portmgr (implicit)
Notes
Notes:
svn path=/branches/2017Q1/; revision=435783
-rw-r--r-- | databases/libmemcached/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/databases/libmemcached/Makefile b/databases/libmemcached/Makefile index f5eb0a9a6d34..6b8fe3502de7 100644 --- a/databases/libmemcached/Makefile +++ b/databases/libmemcached/Makefile @@ -21,6 +21,7 @@ USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-memcached \ --without-sphinx-build \ + --enable-jobserver=${MAKE_JOBS_NUMBER} \ --enable-libmemcachedprotocol LIBS+= -L${LOCALBASE}/lib -lexecinfo |