mirror of
https://github.com/lief-project/LIEF
synced 2026-06-08 15:30:44 +00:00
13 lines
457 B
Bash
13 lines
457 B
Bash
#!/usr/bin/sh
|
|
set -ex
|
|
|
|
export CXXFLAGS='-ffunction-sections -fdata-sections -fvisibility-inlines-hidden -static-libgcc'
|
|
export CFLAGS='-ffunction-sections -fdata-sections -static-libgcc'
|
|
export LDFLAGS='-Wl,--gc-sections -Wl,--strip-all'
|
|
|
|
$PYTHON_BINARY -m pip -vv wheel --wheel-dir=wheel_stage api/python
|
|
|
|
find wheel_stage -iname "*-cp${PYTHON_VERSION}-*" -exec auditwheel repair -w dist {} \;
|
|
|
|
chown -R 1000:1000 api/python/build dist wheel_stage || true
|