diff --git a/.circleci/build-wheel.sh b/.circleci/build-wheel.sh index d69e8c9213fe..1cd80487992b 100755 --- a/.circleci/build-wheel.sh +++ b/.circleci/build-wheel.sh @@ -23,8 +23,8 @@ if [[ "${PYBIN}" =~ $REGEX ]]; then PY_LIMITED_API="--py-limited-api=cp3${BASH_REMATCH[1]}" fi -LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \ - CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \ +OPENSSL_DIR="/opt/pyca/cryptography/openssl" \ + RUSTFLAGS="-Clink-arg=-Wl,--exclude-libs,ALL" \ ../../.venv/bin/python setup.py bdist_wheel "$PY_LIMITED_API" auditwheel repair --plat "${PLATFORM}" -w wheelhouse/ dist/cryptography*.whl