Skip to content

Commit

Permalink
don't re-export the openssl symbols from our shared object (pyca#3825)
Browse files Browse the repository at this point in the history
When linking the static lib we want the symbols to not be exported. To
convince gcc to do this you must pass -Wl,--exclude-libs,ALL in CFLAGS
More info at https://stackoverflow.com/questions/2222162
  • Loading branch information
reaperhulk authored and alex committed Jul 27, 2017
1 parent dce57f6 commit 1750971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .jenkins/Jenkinsfile-cryptography-wheel-builder
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def build(version, label, imageName) {

$linux32 /opt/python/$version/bin/pip install cffi six idna asn1crypto ipaddress enum34
LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \
CFLAGS="-I/opt/pyca/cryptography/openssl/include" \
CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \
$linux32 /opt/python/$version/bin/pip wheel cryptography==$BUILD_VERSION -w tmpwheelhouse/ --no-binary cryptography --no-deps
$linux32 auditwheel repair tmpwheelhouse/cryptography*.whl -w wheelhouse/
$linux32 /opt/python/$version/bin/pip install cryptography==$BUILD_VERSION --no-index -f wheelhouse/
Expand Down

0 comments on commit 1750971

Please sign in to comment.