SOURCES: rpm.macros - moved _smp_mflags here
arekm
arekm at pld-linux.org
Tue Oct 2 21:31:26 CEST 2007
Author: arekm Date: Tue Oct 2 19:31:25 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- moved _smp_mflags here
---- Files affected:
SOURCES:
rpm.macros (1.394 -> 1.395)
---- Diffs:
================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.394 SOURCES/rpm.macros:1.395
--- SOURCES/rpm.macros:1.394 Sat Sep 22 11:44:09 2007
+++ SOURCES/rpm.macros Tue Oct 2 21:31:20 2007
@@ -47,6 +47,9 @@
# and that both p and q are package names (i.e. no version/release).
%_dependency_whiteout %{nil}
+%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
+ && RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
+ [ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
#-----------------------------------------------------------------
#
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.394&r2=1.395&f=u
More information about the pld-cvs-commit
mailing list