churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

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

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