From c34f792a17ed8ee1485dd5d8d152eccfc425d311 Mon Sep 17 00:00:00 2001 From: Robert Niederreiter Date: Fri, 14 Oct 2016 10:04:15 +0200 Subject: [PATCH] tell hostpython where to find openssl --- recipes/hostpython/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/recipes/hostpython/__init__.py b/recipes/hostpython/__init__.py index ad15843..0fc7274 100644 --- a/recipes/hostpython/__init__.py +++ b/recipes/hostpython/__init__.py @@ -20,7 +20,7 @@ class HostpythonRecipe(Recipe): print("Global: hostpgen located at {}".format(self.ctx.hostpgen)) def prebuild_arch(self, arch): - if self.has_marker("patched"): + if self.has_marker("patched"): return self.copy_file("_scproxy.py", "Lib/_scproxy.py") self.apply_patch("ssize-t-max.patch") @@ -62,6 +62,11 @@ class HostpythonRecipe(Recipe): "--sysroot={}".format(sdk_path), "-I{}".format(join(self.ctx.dist_dir, "hostlibffi", "usr", "local", "include")) ]) + + if "openssl.build_all" in self.ctx.state: + build_env["CFLAGS"] += " -I{}".format(join(self.ctx.dist_dir, "include", + "x86_64", "openssl")) + configure = sh.Command(join(self.build_dir, "configure")) shprint(configure, "--prefix={}".format(join(self.ctx.dist_dir, "hostpython")),