8b2694efb7
* fix build for openssl 1.1.1b required for sdk (cherry picked from commitaa49e3b275
) * use js code from master * fix openssl recipe and tweak build (cherry picked from commit6e94c27021
) * remove unused build recipes (cherry picked from commitf5c0577bdb
)
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
diff --git a/setup.py b/setup.py
|
|
index c1db368..57311c3 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -5,8 +5,7 @@ import errno
|
|
|
|
sources = ['c/_cffi_backend.c']
|
|
libraries = ['ffi']
|
|
-include_dirs = ['/usr/include/ffi',
|
|
- '/usr/include/libffi'] # may be changed by pkg-config
|
|
+include_dirs = os.environ['FFI_INC'].split(",") if 'FFI_INC' in os.environ else []
|
|
define_macros = []
|
|
library_dirs = []
|
|
extra_compile_args = []
|
|
@@ -67,14 +66,7 @@ def ask_supports_thread():
|
|
sys.stderr.write("The above error message can be safely ignored\n")
|
|
|
|
def use_pkg_config():
|
|
- if sys.platform == 'darwin' and os.path.exists('/usr/local/bin/brew'):
|
|
- use_homebrew_for_libffi()
|
|
-
|
|
- _ask_pkg_config(include_dirs, '--cflags-only-I', '-I', sysroot=True)
|
|
- _ask_pkg_config(extra_compile_args, '--cflags-only-other')
|
|
- _ask_pkg_config(library_dirs, '--libs-only-L', '-L', sysroot=True)
|
|
- _ask_pkg_config(extra_link_args, '--libs-only-other')
|
|
- _ask_pkg_config(libraries, '--libs-only-l', '-l')
|
|
+ pass
|
|
|
|
def use_homebrew_for_libffi():
|
|
# We can build by setting:
|