1 |
Jeremy Olexa wrote: |
2 |
> Tony, |
3 |
> Some ebuilds filter out MAKEOPTS="-jX" because the makefile(?) is not |
4 |
> written correctly to compile with more than one concurrent compile |
5 |
> process. According to the OOo ebuild, -jX is not filtered, so that is |
6 |
> not the case. Also, you may have checked the CPU usage when it was |
7 |
> extracting the tarball, obviously the choke point here would be the HD, |
8 |
> not the CPU. |
9 |
|
10 |
Actually ... |
11 |
|
12 |
# Should the build use multiprocessing? Not enabled by default, as |
13 |
it tends to break |
14 |
export JOBS="1" |
15 |
if [ "${WANT_DISTCC}" == "true" ]; then |
16 |
export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"` |
17 |
fi |
18 |
|
19 |
Then later on, this gets passed to configure: |
20 |
|
21 |
--with-num-cpus="${JOBS}" \ |
22 |
|
23 |
To sum up, you need to set the WANT_DISTCC variable to use parallel |
24 |
builds on openoffice because they're fragile. |
25 |
|
26 |
Thanks, |
27 |
Donnie |