Fix host-only build.

This commit is contained in:
Ingo Weinhold
2013-09-18 15:41:12 +02:00
committed by Oliver Tappe
parent d7cbcb13da
commit 53b162523f
2 changed files with 7 additions and 2 deletions
+2
View File
@@ -243,6 +243,7 @@ HOST_UNARFLAGS ?= x ;
# check the host platform compatibility # check the host platform compatibility
SetPlatformCompatibilityFlagVariables HOST_PLATFORM : HOST : host SetPlatformCompatibilityFlagVariables HOST_PLATFORM : HOST : host
: linux openbsd freebsd darwin sunos cygwin ; : linux openbsd freebsd darwin sunos cygwin ;
HOST_PLATFORM_(host)_COMPATIBLE = 1 ;
if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd
|| $(HOST_PLATFORM) = darwin || $(HOST_PLATFORM) = cygwin || $(HOST_PLATFORM) = darwin || $(HOST_PLATFORM) = cygwin
@@ -274,6 +275,7 @@ if $(HOST_CPU) = x86 && $(HOST_PLATFORM_IS_64_BIT) {
HOST_ARCH ?= $(HOST_CPU) ; HOST_ARCH ?= $(HOST_CPU) ;
HOST_ARCHS = $(HOST_ARCH) ; HOST_ARCHS = $(HOST_ARCH) ;
HOST_KERNEL_ARCH = host ;
# analyze GCC version # analyze GCC version
HOST_GCC_VERSION = [ FAnalyzeGCCVersion HOST_GCC_RAW_VERSION ] ; HOST_GCC_VERSION = [ FAnalyzeGCCVersion HOST_GCC_RAW_VERSION ] ;
+3
View File
@@ -207,6 +207,9 @@ rule SetPlatformCompatibilityFlagVariables
$(varPrefix)_PLATFORM_HAIKU_COMPATIBLE = true ; $(varPrefix)_PLATFORM_HAIKU_COMPATIBLE = true ;
} }
case host :
# not compatible to anything
case * : case * :
{ {
if ! ( $(platform) in $(otherPlatforms) ) { if ! ( $(platform) in $(otherPlatforms) ) {