build-binary script hardcodes MAKEFLAGS

Bug #1133266 reported by Raghavendra D Prabhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
Wishlist
Ignacio Nin
5.1
Fix Released
Wishlist
Ignacio Nin
5.5
Fix Released
Wishlist
Ignacio Nin
5.6
Fix Released
Wishlist
Ignacio Nin
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Released
Wishlist
Ignacio Nin

Bug Description

In the script it is hard-coded to '-j4'

It can be something like this:

=== modified file 'build/build-binary.sh'
--- build/build-binary.sh 2013-02-06 10:45:19 +0000
+++ build/build-binary.sh 2013-02-26 12:24:29 +0000
@@ -111,7 +111,7 @@
 export CXX=${CXX:-gcc}
 export CFLAGS="-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=$PERCONA_SERVER_VERSION $TARGET_CFLAGS ${CFLAGS:-}"
 export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions -DPERCONA_INNODB_VERSION=$PERCONA_SERVER_VERSION $TARGET_CFLAGS ${CXXFLAGS:-}"
-export MAKE_JFLAG=-j4
+export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKEFLAGS:-}}

 # Create a temporary working directory
 INSTALLDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d percona-build.XXXXXX)"

Related branches

tags: added: low-hanging-fruit pkg
Revision history for this message
Alexey Bychko (abychko) wrote :

for linux it can be like $(grep -c processor /proc/cpuinfo)

Changed in percona-xtradb-cluster:
importance: Undecided → Wishlist
assignee: nobody → Ignacio Nin (ignacio-nin)
milestone: none → 5.5.31-24.8
status: New → Triaged
Changed in percona-xtradb-cluster:
status: Triaged → Fix Committed
Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1159

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2405

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.