qt4: enable parallel building in the configure phase
This commit is contained in:
parent
5f020d5627
commit
8b0ef2a564
@ -67,6 +67,7 @@ stdenv.mkDerivation rec {
|
|||||||
patches =
|
patches =
|
||||||
[ ./glib-2.32.patch
|
[ ./glib-2.32.patch
|
||||||
./libressl.patch
|
./libressl.patch
|
||||||
|
./parallel-configure.patch
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./dlopen-absolute-paths.diff;
|
src = ./dlopen-absolute-paths.diff;
|
||||||
cups = if cups != null then stdenv.lib.getLib cups else null;
|
cups = if cups != null then stdenv.lib.getLib cups else null;
|
||||||
@ -117,6 +118,7 @@ stdenv.mkDerivation rec {
|
|||||||
-demosdir $TMPDIR/share/doc/${name}/demos
|
-demosdir $TMPDIR/share/doc/${name}/demos
|
||||||
-datadir $out/share/${name}
|
-datadir $out/share/${name}
|
||||||
-translationdir $out/share/${name}/translations
|
-translationdir $out/share/${name}/translations
|
||||||
|
--jobs=$NIX_BUILD_CORES
|
||||||
"
|
"
|
||||||
unset LD # Makefile uses gcc for linking; setting LD interferes
|
unset LD # Makefile uses gcc for linking; setting LD interferes
|
||||||
'' + optionalString stdenv.cc.isClang ''
|
'' + optionalString stdenv.cc.isClang ''
|
||||||
@ -251,7 +253,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://qt-project.org/;
|
homepage = http://qt-project.org/;
|
||||||
description = "A cross-platform application framework for C++";
|
description = "A cross-platform application framework for C++";
|
||||||
license = licenses.lgpl21Plus; # or gpl3
|
license = licenses.lgpl21Plus; # or gpl3
|
||||||
maintainers = with maintainers; [ lovek323 phreedom sander ];
|
maintainers = with maintainers; [ orivej lovek323 phreedom sander ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -1087,2 +1087,3 @@ fi
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
+JOBS=
|
||||||
|
|
||||||
|
@@ -2528,2 +2529,5 @@ while [ "$#" -gt 0 ]; do
|
||||||
|
;;
|
||||||
|
+ jobs)
|
||||||
|
+ JOBS=-j$VAL
|
||||||
|
+ ;;
|
||||||
|
*)
|
||||||
|
@@ -5072,3 +5076,3 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
||||||
|
if "$WHICH" makedepend >/dev/null 2>&1 && grep 'depend:' "$mkfile" >/dev/null 2>&1; then
|
||||||
|
- (cd "$outpath/qmake" && "$MAKE" -f "$mkfile" depend) >/dev/null 2>&1
|
||||||
|
+ (cd "$outpath/qmake" && "$MAKE" $JOBS -f "$mkfile" depend) >/dev/null 2>&1
|
||||||
|
sed "s,^.*/\([^/]*.o\):,\1:,g" "$mkfile" >"$mkfile.tmp"
|
||||||
|
@@ -5080,3 +5084,3 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
||||||
|
QMAKE_BUILD_ERROR=no
|
||||||
|
- (cd "$outpath/qmake"; "$MAKE") || QMAKE_BUILD_ERROR=yes
|
||||||
|
+ (cd "$outpath/qmake"; "$MAKE" $JOBS) || QMAKE_BUILD_ERROR=yes
|
||||||
|
[ '!' -z "$QCONFIG_H" ] && mv -f "$QCONFIG_H" "$QMAKE_QCONFIG_H" #move qmake's qconfig.h to qconfig.h.qmake
|
Loading…
x
Reference in New Issue
Block a user