The following commit has been merged in the master branch:
commit fc5390648ce30ee307c622813df6df61808f7095
Author: Antonio Valentino <antonio.valent...@tiscali.it>
Date:   Tue Aug 13 17:49:00 2013 +0000

    Link test programs with libm

diff --git a/debian/changelog b/debian/changelog
index 1b49751..b154e19 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,7 +16,8 @@ epr-api (2.3~dev20130813-1) UNRELEASED; urgency=low
     - fix-build-flags.patch and spelling.patch patches have been removed
       because applied upstream
     - new patch for generating the static library
-    - new patch doe setting the SOVERSION
+    - new patch for setting the SOVERSION
+    - new patch for linking test programs with libm
 
  -- Antonio Valentino <antonio.valent...@tiscali.it>  Tue, 13 Aug 2013 
15:20:14 +0000
 
diff --git a/debian/patches/0003-Link-test-programs-with-libm.patch 
b/debian/patches/0003-Link-test-programs-with-libm.patch
new file mode 100644
index 0000000..bf2e941
--- /dev/null
+++ b/debian/patches/0003-Link-test-programs-with-libm.patch
@@ -0,0 +1,35 @@
+From: Antonio Valentino <antonio.valent...@tiscali.it>
+Date: Tue, 13 Aug 2013 17:47:13 +0000
+Subject: Link test programs with libm
+
+---
+ debian/changelog            | 3 ++-
+ src/api-test/CMakeLists.txt | 2 +-
+ src/test/CMakeLists.txt     | 2 +-
+ 3 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/src/api-test/CMakeLists.txt b/src/api-test/CMakeLists.txt
+index 5f18494..e0d3bd8 100644
+--- a/src/api-test/CMakeLists.txt
++++ b/src/api-test/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ # Copyright (c) 2013 Antonio Valentino <antonio.valent...@tiscali.it>
+ 
+ add_executable(api_tests api_tests.c)
+-target_link_libraries(api_tests epr_api)
++target_link_libraries(api_tests epr_api m)
+ 
+ #add_test(TEST_API_02 api_tests)
+diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
+index d33d6f5..e16db6b 100644
+--- a/src/test/CMakeLists.txt
++++ b/src/test/CMakeLists.txt
+@@ -7,7 +7,7 @@ set(TARGETS api_unit_tests
+ 
+ foreach(TEST ${TARGETS})
+     add_executable(${TEST} ${TEST}.c)
+-    target_link_libraries(${TEST} epr_api)
++    target_link_libraries(${TEST} epr_api m)
+ endforeach(TEST)
+ 
+ target_link_libraries(epr_main_test bccunit)
diff --git a/debian/patches/series b/debian/patches/series
index f088d53..fa8e344 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001-static-lib.patch
 0002-Set-SOVERSION.patch
+0003-Link-test-programs-with-libm.patch

-- 
ENVISAT Product Reader API for C

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to