File: 0013-Link-with-math.patch

package info (click to toggle)
gmpc 11.8.16-23
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,600 kB
  • sloc: ansic: 51,080; sh: 10,438; makefile: 1,748; xml: 9
file content (23 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Etienne Millon <me@emillon.org>
Date: Sat, 16 Jun 2018 15:15:51 +0100
Subject: Link with math library

As gmpc uses floor(), it should link with -lm.
---
 src/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 497194b..0bd3ab5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -174,7 +174,8 @@ LIBS= \
 	@libxml2_LIBS@\
 	@libx11_LIBS@\
 	@sqlite3_LIBS@\
-	-lz
+	-lz \
+	-lm
 
 
 if HAVE_UNIQUE