File: do-not-link-to-libm.patch

package info (click to toggle)
libalgorithm-svm-perl 0.13-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 436 kB
  • sloc: cpp: 3,051; perl: 364; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 780 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Do not link against libm.
 This was required by upstream because they are also building libsvm
 which would require libm.  It is redundant for Debian because we
 patch out the vendorised libsvm and use Debian's system-wide libsvm.
Forwarded: not-needed
Author: Carnë Draug <carandraug+dev@gmail.com>
Last-Update: 2017-04-19

--- a/Makefile.PL
+++ b/Makefile.PL
@@ -15,7 +15,7 @@
 	       (ABSTRACT_FROM => 'lib/Algorithm/SVM.pm',
 		AUTHOR        => 'Matthew Laird <matt@brinkman.mbb.sfu.ca>') : ()),
 	      'OPTIMIZE'      => '-O3',  # segfaults with gcc 2.96 if lower (?)
-	      'LIBS'          => '-lm -lsvm',
+	      'LIBS'          => '-lsvm',
 	      'CC'            => $CC,
 	      'LD'            => '$(CC)',
 	      'OBJECT'        => 'SVM.o bindings.o',