Skip to content

Commit 3844ad9

Browse files
committed
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.
1 parent 75dc6fd commit 3844ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ mkdir -p $BUILDDIR
141141
cd $BUILDDIR
142142
BUILD=$(../config.guess) # Python configure requires build triplet for cross compilation
143143

144-
export CC=$HOST-clang
145-
export CXX=$HOST-clang++
144+
export CC=$HOST-gcc
145+
export CXX=$HOST-g++
146146

147147
../configure --prefix="$PREFIX" --build=$BUILD --host=$HOST \
148148
CFLAGS="-I$PREFIX/include" CXXFLAGS="-I$PREFIX/include" LDFLAGS="-L$PREFIX/lib -Wl,-s" \

0 commit comments

Comments
 (0)