[wfmath] Fixes to force instantiating functions that can be inlined.

Bruno Wolff III bruno at fedoraproject.org
Sun May 15 14:44:21 UTC 2011


commit ff8fb256a3a6cfde32dc25932143838d3bc6d636
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sun May 15 09:19:49 2011 -0500

    Fixes to force instantiating functions that can be inlined.

 wfmath-instantiate.patch |    9 +++++++++
 wfmath.spec              |    4 +++-
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/wfmath-instantiate.patch b/wfmath-instantiate.patch
new file mode 100644
index 0000000..a99bfc2
--- /dev/null
+++ b/wfmath-instantiate.patch
@@ -0,0 +1,9 @@
+--- wfmath/polygon.cpp.orig	2011-05-15 08:49:22.000000000 -0500
++++ wfmath/polygon.cpp	2011-05-15 09:05:02.000000000 -0500
+@@ -186,5 +186,6 @@
+ template Point<3> _Poly2Orient<3>::convert(const Point<2>& p) const;
+ template _Poly2Orient<3>& _Poly2Orient<3>::operator=(_Poly2Orient<3> const&);
+ template void _Poly2Orient<3>::rotate(RotMatrix<3> const&, Point<3> const&);
++template bool _Poly2Orient<3>::expand(WFMath::Point<3> const&, WFMath::Point<2>&, double);
+ 
+ }
diff --git a/wfmath.spec b/wfmath.spec
index b7b2679..da22233 100644
--- a/wfmath.spec
+++ b/wfmath.spec
@@ -1,12 +1,13 @@
 Name:           wfmath
 Version:        0.3.11
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        WorldForge client math libraries
 
 Group:          Development/Libraries
 License:        GPLv2+
 URL:            http://worldforge.org/dev/eng/libraries/wfmath
 Source0:        http://downloads.sourceforge.net/sourceforge/worldforge/%{name}-%{version}.tar.bz2
+Patch0:         wfmath-instantiate.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  pkgconfig doxygen
@@ -31,6 +32,7 @@ Libraries and header files for developing applications that use wfmath.
 
 %prep
 %setup -q
+%patch0 -p0
 
 
 %build


More information about the scm-commits mailing list