churchyard / rpms / python3

Forked from rpms/python3 4 years ago
Clone

Blame 00291-setup-Link-ctypes-against-dl-explicitly.patch

d3af3ef
From aae2ef0bace0e38f4ee5aaa4642aa32450a84216 Mon Sep 17 00:00:00 2001
d3af3ef
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
d3af3ef
Date: Tue, 23 Jan 2018 14:43:43 +0100
d3af3ef
Subject: [PATCH] setup: Link ctypes against dl explicitly
d3af3ef
d3af3ef
---
d3af3ef
 setup.py | 2 +-
d3af3ef
 1 file changed, 1 insertion(+), 1 deletion(-)
d3af3ef
d3af3ef
diff --git a/setup.py b/setup.py
d3af3ef
index c23628a2a9..9e40bb53e6 100644
d3af3ef
--- a/setup.py
d3af3ef
+++ b/setup.py
d3af3ef
@@ -1935,7 +1935,7 @@ class PyBuildExt(build_ext):
d3af3ef
         self.use_system_libffi = False
d3af3ef
         include_dirs = []
d3af3ef
         extra_compile_args = []
d3af3ef
-        extra_link_args = []
d3af3ef
+        extra_link_args = ['-ldl']
d3af3ef
         sources = ['_ctypes/_ctypes.c',
d3af3ef
                    '_ctypes/callbacks.c',
d3af3ef
                    '_ctypes/callproc.c',
d3af3ef
-- 
d3af3ef
2.16.1
d3af3ef