[sirius] Include -lm

Bruno Wolff III bruno at fedoraproject.org
Sat Nov 5 19:54:49 UTC 2011


commit 85c884bab4ca5fc247e0142ec7366857ab5e65cc
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sat Nov 5 14:52:25 2011 -0500

    Include -lm
    
    A sqrt apparently is no longer inlined and we need to add -lm
    to avoid a DSO linking error.

 sirius-libm.patch |    9 +++++++++
 sirius.spec       |    3 +++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/sirius-libm.patch b/sirius-libm.patch
new file mode 100644
index 0000000..3256255
--- /dev/null
+++ b/sirius-libm.patch
@@ -0,0 +1,9 @@
+--- src/Makefile.am.orig	2011-11-05 14:49:31.217887208 -0500
++++ src/Makefile.am	2011-11-05 14:49:46.288802644 -0500
+@@ -17,5 +17,5 @@
+ 	search.c search.h				\
+ 	timer.c timer.h
+ 
+-sirius_LDADD = $(PACKAGE_LIBS)
++sirius_LDADD = $(PACKAGE_LIBS) -lm
+ 
diff --git a/sirius.spec b/sirius.spec
index bc9c8e6..3d9e01c 100644
--- a/sirius.spec
+++ b/sirius.spec
@@ -11,6 +11,7 @@ License:	GPLv2+
 #Source0:	http://sirius.bitvis.nu/files/%{name}-%{version}.tar.gz
 Source0:	%{name}-%{version}.tar.gz
 Patch0:         sirius-desktop.patch
+Patch1:         sirius-libm.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	desktop-file-utils
@@ -39,6 +40,7 @@ transpositions and a less expensive evaluation function.
 %prep
 %setup -q
 %patch0
+%patch1
 
 
 %build
@@ -79,6 +81,7 @@ desktop-file-install --vendor fedora --delete-original	\
 %changelog
 * Sat Nov 05 2011 Bruno Wolff III <bruno at wolff.to> - 0.8.0-18
 - Rebuild for libpng 1.5
+- Add -lm since sqrt stopped be inlined
 
 * Fri Jun 24 2011 Bruno Wolff III <bruno at wolff.to> - 0.8.0-17
 - Note that upstream has disappeared


More information about the scm-commits mailing list