tell hostpython where to find openssl
This commit is contained in:
parent
228c4c320d
commit
c34f792a17
1 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,7 @@ class HostpythonRecipe(Recipe):
|
||||||
print("Global: hostpgen located at {}".format(self.ctx.hostpgen))
|
print("Global: hostpgen located at {}".format(self.ctx.hostpgen))
|
||||||
|
|
||||||
def prebuild_arch(self, arch):
|
def prebuild_arch(self, arch):
|
||||||
if self.has_marker("patched"):
|
if self.has_marker("patched"):
|
||||||
return
|
return
|
||||||
self.copy_file("_scproxy.py", "Lib/_scproxy.py")
|
self.copy_file("_scproxy.py", "Lib/_scproxy.py")
|
||||||
self.apply_patch("ssize-t-max.patch")
|
self.apply_patch("ssize-t-max.patch")
|
||||||
|
@ -62,6 +62,11 @@ class HostpythonRecipe(Recipe):
|
||||||
"--sysroot={}".format(sdk_path),
|
"--sysroot={}".format(sdk_path),
|
||||||
"-I{}".format(join(self.ctx.dist_dir, "hostlibffi", "usr", "local", "include"))
|
"-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"))
|
configure = sh.Command(join(self.build_dir, "configure"))
|
||||||
shprint(configure,
|
shprint(configure,
|
||||||
"--prefix={}".format(join(self.ctx.dist_dir, "hostpython")),
|
"--prefix={}".format(join(self.ctx.dist_dir, "hostpython")),
|
||||||
|
|
Loading…
Reference in a new issue