Skip to content

Commit 6075dfa

Browse files
committed
Raise an error when building on non-Linux platforms
1 parent 86a9f26 commit 6075dfa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.sh

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ version=${2:?}
66
build=${3:?}
77
export HOST=${4:?}
88

9+
if [ "$(uname)" != "Linux" ]; then
10+
echo 'These scripts may not work on non-Linux platforms. For example, building '
11+
echo 'OpenSSL 3.0.13 on macOS led to the runtime error: dlopen failed: cannot find '
12+
echo '"libcrypto_python.so" from verneed[1] in DT_NEEDED list for '
13+
echo '"/data/data/org.python.testbed/files/python/lib/python3.13/lib-dynload/_ssl.cpython-313-aarch64-linux-android.so".'
14+
echo 'The cause of this is unknown.'
15+
exit 1
16+
fi
17+
918
recipe_dir=$(dirname $(realpath $0))/$name
1019
$recipe_dir/build.sh $version
1120

0 commit comments

Comments
 (0)