[packages/v8] add verbose build bcond. update make opts from chromium

glen glen at pld-linux.org
Thu Apr 4 22:42:27 CEST 2013


commit 2264b152c62d4be6180b5b6318bb4632f4588b26
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 4 23:41:48 2013 +0300

    add verbose build bcond. update make opts from chromium

 v8.spec | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)
---
diff --git a/v8.spec b/v8.spec
index 7dba564..f715d00 100644
--- a/v8.spec
+++ b/v8.spec
@@ -1,12 +1,16 @@
 # TODO
 # - readline not working in d8 (at least arrows)
+#
+# Conditional build:
+%bcond_without	verbose			# verbose build (V=1)
+
 Summary:	JavaScript Engine by Google
 Summary(pl.UTF-8):	Silnik JavaScript firmy Google
 Name:		v8
 Version:	3.15.11.17
 Release:	1
 License:	BSD
-Group:		Applications
+Group:		Development/Languages
 # Source0Download: http://gsdview.appspot.com/chromium-browser-official/?marker=v8-3.15.11.17.tar.bz2
 Source0:	http://commondatastorage.googleapis.com/chromium-browser-official/%{name}-%{version}.tar.bz2
 # Source0-md5:	0930164aa73e5ce94565ae1b85fac19b
@@ -80,17 +84,17 @@ Pliki nagłówkowe silnika JavaScriptu V8.
 %patch3 -p1
 
 %build
-# build library
-CFLAGS="%{rpmcflags}"
-CXXFLAGS="%{rpmcxxflags}"
-LDFLAGS="%{rpmldflags}"
-CC="%{__cc}"
-CXX="%{__cxx}"
-export CFLAGS LDFLAGS CXXFLAGS CC CXX
-%{__make} native \
-	library=shared \
+%{__make} -r native \
+	component=shared_library \
 	soname_version=%{sover} \
-	console=readline
+	console=readline \
+	CC="%{__cc}" \
+	CXX="%{__cxx}" \
+	LINK="flock %{__cxx} -fuse-ld=gold" \
+	CFLAGS="%{rpmcflags}" \
+	CXXFLAGS="%{rpmcxxflags}" \
+	LDFLAGS="%{rpmldflags}" \
+	%{?with_verbose:V=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/v8.git/commitdiff/2264b152c62d4be6180b5b6318bb4632f4588b26



More information about the pld-cvs-commit mailing list