File: Link-against-libm.patch

package info (click to toggle)
python-udatetime 0.0.16-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 232 kB
  • sloc: ansic: 768; python: 536; makefile: 6
file content (22 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Ilias Tsitsimpis <iliastsi@debian.org>
Date: Fri, 1 May 2020 20:29:16 +0300
Subject: Link against libm

Bug: https://github.com/freach/udatetime/issues/30
Bug-Debian: https://bugs.debian.org/954305
---
 setup.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/setup.py b/setup.py
index 2770298..498f40c 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ if __pypy__ is None:
         Extension(
             'udatetime.rfc3339',
             ['./src/rfc3339.c'],
+            libraries=['m'],
             define_macros=macros,
             extra_compile_args=['-Ofast', '-std=c99']
         )