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:
1 parent
75dc6fd314
commit
3844ad9a95
1 file changed
+2
-2
+2
-2
@@ -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" \
|
||||
|
||||
Reference in new issue
Block a user