explicitly link against libm

This commit is contained in:
Nils Philippsen 2014-12-08 11:01:01 +01:00
parent d0ad6ceaee
commit d602948a53
2 changed files with 36 additions and 1 deletions

29
libspiro-0.2-libm.patch Normal file
View File

@ -0,0 +1,29 @@
From 3b6723f326704e3e3b2d99b75f4fcf3d02d02bf5 Mon Sep 17 00:00:00 2001
From: Joe Da Silva <digital@joescat.com>
Date: Sat, 2 Nov 2013 21:02:42 -0700
Subject: [PATCH] Same Check used in FontForge needed here too for '-lm' for
math libraries
Some distros like Ubuntu, and operating systems such as BeOS require -lm
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 5c5cc70..aa5bf06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,10 @@ dnl AM_MAINTAINER_MODE([enable])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],[AC_SUBST([AM_DEFAULT_VERBOSITY],[1])])
#-------------------------------------------
+# Check for libraries
+AC_SEARCH_LIBS([cos],[m])
+
+#-------------------------------------------
# Check for finite or isfinite. Use one.
AC_CHECK_FUNCS(finite, ,[
AC_MSG_CHECKING(for finite in <math.h>)
--
2.1.0

View File

@ -1,12 +1,14 @@
Name: libspiro
Version: 20130930
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Library to simplify the drawing of beautiful curves
Group: System Environment/Libraries
License: GPLv2+
URL: http://libspiro.sourceforge.net/
Source0: https://github.com/fontforge/libspiro/archive/v0.2.tar.gz
# Upstream commit 3b6723f326704e3e3b2d99b75f4fcf3d02d02bf5
Patch0: libspiro-0.2-libm.patch
BuildRequires: automake autoconf libtool
%description
@ -25,6 +27,7 @@ developing applications that use %{name}.
%prep
%setup -q -n libspiro-0.2
%patch0 -p1 -b .libm
%build
autoreconf -i
@ -50,6 +53,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_libdir}/*.so
%changelog
* Mon Dec 08 2014 Nils Philippsen <nils@redhat.com> - 20130930-4
- explicitly link against libm
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130930-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild