diff options
| author | Michael Forney <mforney@mforney.org> | 2021-05-16 01:12:58 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2021-05-17 22:03:56 -0700 |
| commit | 732d09a691b0455f04db8ea11dc8133c0dda5dfb (patch) | |
| tree | 9fade34be33b366923dfeb4fcd9e4964fd4bcf19 /pkg/python/gen.lua | |
| parent | a13fa66f67543d4320b75d4aeb18d9ad7dbae180 (diff) | |
python: Port _hashlib to BearSSL
Diffstat (limited to 'pkg/python/gen.lua')
| -rw-r--r-- | pkg/python/gen.lua | 7 |
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, { |
