[spatialite] 12/20: Add patch to link libm for math functions.

Bas Couwenberg sebastic at xs4all.nl
Sun Aug 3 21:55:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch experimental
in repository spatialite.

commit 3d15689c833133d0612b32c46c6d604a01cca5a9
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Jun 2 00:37:16 2014 +0200

    Add patch to link libm for math functions.
---
 debian/changelog               |  1 +
 debian/patches/03-link-m.patch | 24 ++++++++++++++++++++++++
 debian/patches/series          |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7026257..c8eb00c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ spatialite (4.2.0~rc1-1) UNRELEASED; urgency=low
   * Add patch to fix 'successfully' typo.
   * Add mod-spatialite package for the loadable extension module.
   * Bump SOVERSION to reflect added and removed symbols.
+  * Add patch to link libm for math functions.
 
  -- Bas Couwenberg <sebastic at xs4all.nl>  Sun, 01 Jun 2014 14:15:51 +0200
 
diff --git a/debian/patches/03-link-m.patch b/debian/patches/03-link-m.patch
new file mode 100644
index 0000000..d925851
--- /dev/null
+++ b/debian/patches/03-link-m.patch
@@ -0,0 +1,24 @@
+Description: Link libm for math symbols.
+Author: Bas Couwenberg <sebastic at xs4all.nl>
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -42,7 +42,7 @@ libspatialite_la_LDFLAGS = -version-info
+ libspatialite_la_LIBADD += -ldl
+ else
+ libspatialite_la_LDFLAGS = -version-info 7:0:0
+-libspatialite_la_LIBADD += -lpthread -ldl
++libspatialite_la_LIBADD += -lpthread -ldl -lm
+ endif
+ endif
+ 
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -79,7 +79,7 @@ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+ @ANDROID_TRUE@@MINGW_FALSE at am__append_1 = -ldl
+- at ANDROID_FALSE@@MINGW_FALSE at am__append_2 = -lpthread -ldl
++ at ANDROID_FALSE@@MINGW_FALSE at am__append_2 = -lpthread -ldl -lm
+ @ANDROID_TRUE@@MINGW_FALSE at am__append_3 = -ldl
+ @ANDROID_FALSE@@MINGW_FALSE at am__append_4 = -lpthread -ldl
+ subdir = src
diff --git a/debian/patches/series b/debian/patches/series
index 8d4ab73..4813a19 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,5 +1,6 @@
 00-add_automake_foreign.patch
 02-fix_version-info.patch
+03-link-m.patch
 07-fix_spatialite_pc.patch
 10-automake-subdir-objects.patch
 11-link-libxml2.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/spatialite.git



More information about the Pkg-grass-devel mailing list