From 732d09a691b0455f04db8ea11dc8133c0dda5dfb Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 16 May 2021 01:12:58 -0700 Subject: python: Port _hashlib to BearSSL --- pkg/python/gen.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pkg/python/gen.lua') diff --git a/pkg/python/gen.lua b/pkg/python/gen.lua index ad5cc5c5..98cdde72 100644 --- a/pkg/python/gen.lua +++ b/pkg/python/gen.lua @@ -15,7 +15,12 @@ if modules._ctypes then table.insert(pkg.deps, 'pkg/libffi/headers') table.insert(libs, 'libffi/libffi.a') end -if modules._hashlib or modules._ssl then +if modules._hashlib then + cflags{'-isystem $builddir/pkg/bearssl/include'} + table.insert(pkg.deps, 'pkg/bearssl/headers') + table.insert(libs, 'bearssl/libbearssl.a') +end +if modules._ssl then cflags{'-isystem $builddir/pkg/libressl/include'} table.insert(pkg.deps, 'pkg/libressl/headers') table.insert(libs, { -- cgit v1.2.3