SPECS: STLport.spec - bcond_with static_gcc added (useful for depl...
pluto
pluto at pld-linux.org
Tue Apr 1 22:04:12 CEST 2008
Author: pluto Date: Tue Apr 1 20:04:12 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- bcond_with static_gcc added (useful for deploying binaries on ancient enterpise systems).
---- Files affected:
SPECS:
STLport.spec (1.93 -> 1.94)
---- Diffs:
================================================================
Index: SPECS/STLport.spec
diff -u SPECS/STLport.spec:1.93 SPECS/STLport.spec:1.94
--- SPECS/STLport.spec:1.93 Thu Mar 6 21:01:01 2008
+++ SPECS/STLport.spec Tue Apr 1 22:04:07 2008
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with static_gcc # linkg libgcc* statically into libstlport.
+#
Summary: C++ standard library
Summary(pl.UTF-8): Biblioteki standardowe C++
Name: STLport
@@ -99,7 +103,11 @@
sed -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak
%build
-%{__make} -C build/lib -f gcc.mak \
+cd build/lib
+
+%{?with_static_gcc:./configure --use-static-gcc}
+
+%{__make} -f gcc.mak \
stldbg-shared \
stldbg-static \
release-shared \
@@ -107,6 +115,8 @@
CC="%{__cc}" \
CXX="%{__cxx}"
+cd ../..
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_includedir}
@@ -173,6 +183,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.94 2008-04-01 20:04:07 pluto
+- bcond_with static_gcc added (useful for deploying binaries on ancient enterpise systems).
+
Revision 1.93 2008-03-06 20:01:01 pluto
- fix gcc-4.2/4.3 version detection.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/STLport.spec?r1=1.93&r2=1.94&f=u
More information about the pld-cvs-commit
mailing list