Since configuring an unsuitable cross-compiler has become a FAQ lately,
we do now check whether the target the compiler has been configured for looks compatible. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
cf2aeb201f
commit
eedc3d0be0
11
configure
vendored
11
configure
vendored
@ -299,6 +299,17 @@ fi
|
||||
# prepare gcc settings
|
||||
standard_gcc_settings
|
||||
|
||||
# check whether the Haiku compiler really targets Haiku or BeOS
|
||||
case "$haikuGCCMachine" in
|
||||
*-*-haiku) ;;
|
||||
*-*-beos) ;;
|
||||
*) echo The compiler specified as Haiku target compiler is not a valid \
|
||||
Haiku cross-compiler. Please see ReadMe.cross-compile. >&2
|
||||
echo compiler: $HAIKU_CC
|
||||
echo compiler is configured for target: $haikuGCCMachine
|
||||
exit 1 ;;
|
||||
esac
|
||||
|
||||
# Generate BuildConfig
|
||||
cat << EOF > "$buildOutputDir/BuildConfig"
|
||||
# BuildConfig
|
||||
|
Loading…
Reference in New Issue
Block a user