Instruct GNU make to compile in parallel to reduce build durations.

Tue, 28 Aug 2012 19:02:40 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 19:02:40 +0200
changeset 636
17d7a4451299
parent 635
60d8c38e1900
child 637
62b6ea15aed8

Instruct GNU make to compile in parallel to reduce build durations.

binutils/binutils.spec file | annotate | diff | comparison | revisions
bison/bison.spec file | annotate | diff | comparison | revisions
dovecot/dovecot.spec file | annotate | diff | comparison | revisions
snmp/snmp.spec file | annotate | diff | comparison | revisions
     1.1 --- a/binutils/binutils.spec	Tue Aug 28 19:02:35 2012 +0200
     1.2 +++ b/binutils/binutils.spec	Tue Aug 28 19:02:40 2012 +0200
     1.3 @@ -109,7 +109,7 @@
     1.4          $ARGS
     1.5  
     1.6      #   build package
     1.7 -    %{l_make} %{l_mflags}
     1.8 +    %{l_make} %{l_mflags -O}
     1.9  
    1.10  %install
    1.11      #   install package
     2.1 --- a/bison/bison.spec	Tue Aug 28 19:02:35 2012 +0200
     2.2 +++ b/bison/bison.spec	Tue Aug 28 19:02:40 2012 +0200
     2.3 @@ -99,7 +99,7 @@
     2.4            --mandir=%{l_prefix}/man \
     2.5            --infodir=%{l_prefix}/info \
     2.6            --disable-nls
     2.7 -      %{l_make} -f Makefile %{l_mflags}
     2.8 +      %{l_make} -f Makefile %{l_mflags -O}
     2.9      ) || exit $?
    2.10  %if "%{with_old}" == "yes"
    2.11      ( cd bison-%{V_old}
    2.12 @@ -111,14 +111,14 @@
    2.13            --mandir=%{l_prefix}/man \
    2.14            --infodir=%{l_prefix}/info \
    2.15            --disable-nls
    2.16 -      %{l_make} -f Makefile %{l_mflags}
    2.17 +      %{l_make} -f Makefile %{l_mflags -O}
    2.18      ) || exit $?
    2.19  %endif
    2.20  
    2.21  %install
    2.22  %if "%{with_old}" == "yes"
    2.23      ( cd bison-%{V_old}
    2.24 -      %{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    2.25 +      %{l_make} -f Makefile %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
    2.26        mv $RPM_BUILD_ROOT%{l_prefix}/bin/bison \
    2.27           $RPM_BUILD_ROOT%{l_prefix}/bin/bison-old
    2.28        mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/bison.1 \
    2.29 @@ -126,7 +126,7 @@
    2.30      ) || exit $?
    2.31  %endif
    2.32      ( cd bison-%{V_new}
    2.33 -      %{l_make} -f Makefile %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    2.34 +      %{l_make} -f Makefile %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT"
    2.35      ) || exit $?
    2.36      rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
    2.37      rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
     3.1 --- a/dovecot/dovecot.spec	Tue Aug 28 19:02:35 2012 +0200
     3.2 +++ b/dovecot/dovecot.spec	Tue Aug 28 19:02:40 2012 +0200
     3.3 @@ -57,7 +57,7 @@
     3.4  Patch0:       dovecot.patch
     3.5  
     3.6  #   build information
     3.7 -BuildPreReq:  OpenPKG, openpkg >= 20100101, pkgconfig
     3.8 +BuildPreReq:  OpenPKG, openpkg >= 20100101, pkgconfig, make
     3.9  PreReq:       OpenPKG, openpkg >= 20100101, MTA, x509
    3.10  BuildPreReq:  libiconv, openssl, zlib, bzip2
    3.11  PreReq:       libiconv, openssl, zlib, bzip2
     4.1 --- a/snmp/snmp.spec	Tue Aug 28 19:02:35 2012 +0200
     4.2 +++ b/snmp/snmp.spec	Tue Aug 28 19:02:40 2012 +0200
     4.3 @@ -54,7 +54,7 @@
     4.4  Patch2:       snmp_iface.patch
     4.5  
     4.6  #   build information
     4.7 -BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc
     4.8 +BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc, make
     4.9  PreReq:       OpenPKG, openpkg >= 20100101
    4.10  BuildPreReq:  openssl
    4.11  PreReq:       openssl
    4.12 @@ -169,8 +169,8 @@
    4.13          --with-defaults
    4.14  
    4.15      #   build package
    4.16 -    %{l_make} %{l_mflags} touchit
    4.17 -    %{l_make} %{l_mflags}
    4.18 +    %{l_make} %{l_mflags -O} touchit
    4.19 +    %{l_make} %{l_mflags -O}
    4.20  
    4.21  %install
    4.22      #   install package

mercurial