1
- diff --git a/setup.py b/setup.py
2
- index c1db368..57311c3 100644
1
+ diff --git a/setup.py b/setup copy .py
2
+ index 4ce0007..9be4a6d 100644
3
3
--- a/setup.py
4
- +++ b/setup.py
5
- @@ -5 ,8 +5 ,7 @@ import errno
4
+ +++ b/setup
5
+ @@ -9 ,8 +9 ,7 @@ if sys.platform == "win32":
6
6
7
7
sources = ['c/_cffi_backend.c']
8
8
libraries = ['ffi']
9
9
- include_dirs = ['/usr/include/ffi',
10
10
- '/usr/include/libffi'] # may be changed by pkg-config
11
- + include_dirs = os.environ['FFI_INC'].split("," ) if 'FFI_INC' in os.environ else []
12
- define_macros = []
11
+ + include_dirs = os.environ['FFI_INC'].split(',' ) if 'FFI_INC' in os.environ else []
12
+ define_macros = [('FFI_BUILDING', '1')] # for linking with libffi static library
13
13
library_dirs = []
14
14
extra_compile_args = []
15
- @@ -67 ,14 +66 ,7 @@ def ask_supports_thread ():
16
- sys.stderr.write("The above error message can be safely ignored\n" )
15
+ @@ -105 ,14 +104 ,7 @@ def uses_msvc ():
16
+ return config.try_compile('#ifndef _MSC_VER\n# error "not MSVC"\n#endif' )
17
17
18
18
def use_pkg_config():
19
19
- if sys.platform == 'darwin' and os.path.exists('/usr/local/bin/brew'):
@@ -25,6 +25,4 @@ index c1db368..57311c3 100644
25
25
- _ask_pkg_config(extra_link_args, '--libs-only-other')
26
26
- _ask_pkg_config(libraries, '--libs-only-l', '-l')
27
27
+ pass
28
-
29
- def use_homebrew_for_libffi():
30
- # We can build by setting:
28
+
0 commit comments