30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 4c9f77f6da043a7f1feabc27a9f10691c16607a5 Mon Sep 17 00:00:00 2001
|
|
From: Naveen M K <naveen521kk@gmail.com>
|
|
Date: Mon, 13 Feb 2023 19:05:43 +0530
|
|
Subject: [PATCH 016/N] setup.py: add libraries to fix compile of ctypes on
|
|
MINGW
|
|
|
|
---
|
|
setup.py | 5 +++--
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index b0bafa6..63c5065 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -1418,11 +1418,12 @@ def detect_ctypes(self):
|
|
include_dirs=include_dirs,
|
|
extra_compile_args=extra_compile_args,
|
|
extra_link_args=extra_link_args,
|
|
- libraries=[],
|
|
+ libraries=(['ole32', 'oleaut32', 'uuid'] if MS_WINDOWS else []),
|
|
sources=sources)
|
|
self.add(ext)
|
|
# function my_sqrt() needs libm for sqrt()
|
|
- self.addext(Extension('_ctypes_test', ['_ctypes/_ctypes_test.c']))
|
|
+ self.addext(Extension('_ctypes_test', ['_ctypes/_ctypes_test.c'],
|
|
+ libraries=(['oleaut32'] if MS_WINDOWS else [])))
|
|
|
|
ffi_inc = sysconfig.get_config_var("LIBFFI_INCLUDEDIR")
|
|
ffi_lib = None
|