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.
This commit is contained in:
Martin Storsjö committed 2023-03-11 23:53:10 +02:00
1 parent 75dc6fd314
commit 3844ad9a95
1 file changed
+2 -2
+2 -2
View File
@@ -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" \