cross-compilation: also force GCC to target's gcc.

--HG--
extra : convert_revision : 55dcefd3fc1c49fd003876f15d3ec0d70ab49844
This commit is contained in:
Juan RP 2008-11-05 01:06:38 +01:00
parent baf877026b
commit 8ecff4f092

View File

@ -16,6 +16,7 @@ SAVE_PATH="$PATH"
cross_compile_setvars()
{
export GCC=$XBPS_CROSS_TARGET-gcc
export CC=$XBPS_CROSS_TARGET-gcc
export CXX=$XBPS_CROSS_TARGET-g++
export CPP=$XBPS_CROSS_TARGET-cpp
@ -29,7 +30,7 @@ cross_compile_setvars()
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"
}