cross-compilation: also force GCC to target's gcc.
--HG-- extra : convert_revision : 55dcefd3fc1c49fd003876f15d3ec0d70ab49844
This commit is contained in:
parent
baf877026b
commit
8ecff4f092
|
@ -16,6 +16,7 @@ SAVE_PATH="$PATH"
|
||||||
|
|
||||||
cross_compile_setvars()
|
cross_compile_setvars()
|
||||||
{
|
{
|
||||||
|
export GCC=$XBPS_CROSS_TARGET-gcc
|
||||||
export CC=$XBPS_CROSS_TARGET-gcc
|
export CC=$XBPS_CROSS_TARGET-gcc
|
||||||
export CXX=$XBPS_CROSS_TARGET-g++
|
export CXX=$XBPS_CROSS_TARGET-g++
|
||||||
export CPP=$XBPS_CROSS_TARGET-cpp
|
export CPP=$XBPS_CROSS_TARGET-cpp
|
||||||
|
@ -29,7 +30,7 @@ cross_compile_setvars()
|
||||||
|
|
||||||
cross_compile_unsetvars()
|
cross_compile_unsetvars()
|
||||||
{
|
{
|
||||||
unset CC CXX CPP AR AS RANLIB LD STRIP PATH
|
unset GCC CC CXX CPP AR AS RANLIB LD STRIP PATH
|
||||||
export PATH="$SAVE_PATH"
|
export PATH="$SAVE_PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue