Skip to content

Commit a0beaf2

Browse files
committed
unix: be more explicit about target triple when building OpenSSL
This is more robust when more targets will be supported.
1 parent 91617e0 commit a0beaf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpython-unix/build-openssl.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ fi
2525

2626
if [ "${PYBUILD_PLATFORM}" = "macos" ]; then
2727
OPENSSL_TARGET=darwin64-x86_64-cc
28-
else
28+
elif [ "${TARGET_TRIPLE}" = "x86_64-unknown-linux-gnu" ]; then
2929
OPENSSL_TARGET=linux-x86_64
30+
else
31+
echo "Error: unsupported target"
32+
exit 1
3033
fi
3134

3235
/usr/bin/perl ./Configure --prefix=/tools/deps ${OPENSSL_TARGET} no-shared ${EXTRA_FLAGS}

0 commit comments

Comments
 (0)