From 3844ad9a95a54d3ea0bd62e19ca21ce756318ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 10 Mar 2023 20:09:42 +0200 Subject: [PATCH] build-python: Use $HOST-gcc instead of $HOST-clang for cross compilation While $HOST-clang is more specific for the use in llvm-mingw, using the form $HOST-gcc would allow using the same script in GCC based environments too. --- build-python.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-python.sh b/build-python.sh index d7cda34..39f10fd 100755 --- a/build-python.sh +++ b/build-python.sh @@ -141,8 +141,8 @@ mkdir -p $BUILDDIR cd $BUILDDIR BUILD=$(../config.guess) # Python configure requires build triplet for cross compilation -export CC=$HOST-clang -export CXX=$HOST-clang++ +export CC=$HOST-gcc +export CXX=$HOST-g++ ../configure --prefix="$PREFIX" --build=$BUILD --host=$HOST \ CFLAGS="-I$PREFIX/include" CXXFLAGS="-I$PREFIX/include" LDFLAGS="-L$PREFIX/lib -Wl,-s" \