SOURCES: rpm.macros - add %cc_version/%cxx_version
glen
glen at pld-linux.org
Tue May 27 07:20:28 CEST 2008
Author: glen Date: Tue May 27 05:20:27 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- add %cc_version/%cxx_version
---- Files affected:
SOURCES:
rpm.macros (1.452 -> 1.453)
---- Diffs:
================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.452 SOURCES/rpm.macros:1.453
--- SOURCES/rpm.macros:1.452 Sat May 24 13:32:43 2008
+++ SOURCES/rpm.macros Tue May 27 07:20:22 2008
@@ -8,6 +8,10 @@
%kgcc %{__cc}
%kgcc_package gcc
+# compiler version
+%cc_version %{expand:%%global cc_version %(%{__cc} -dumpversion || echo ERROR)}%cc_version
+%cxx_version %{expand:%%global cxx_version %(%{__cc} -dumpversion || echo ERROR)}%cxx_version
+
%__rm /bin/rm --interactive=never
# Build system path macros.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/rpm.macros?r1=1.452&r2=1.453&f=u
More information about the pld-cvs-commit
mailing list