summaryrefslogtreecommitdiff
path: root/pkg/python/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-05-16 01:12:58 -0700
committerMichael Forney <mforney@mforney.org>2021-05-17 22:03:56 -0700
commit732d09a691b0455f04db8ea11dc8133c0dda5dfb (patch)
tree9fade34be33b366923dfeb4fcd9e4964fd4bcf19 /pkg/python/gen.lua
parenta13fa66f67543d4320b75d4aeb18d9ad7dbae180 (diff)
python: Port _hashlib to BearSSL
Diffstat (limited to 'pkg/python/gen.lua')
-rw-r--r--pkg/python/gen.lua7
1 files changed, 6 insertions, 1 deletions
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, {