makebootable: Add in needed GPT libuuid on cross-platform builds

This commit is contained in:
Alexander von Gluck IV 2015-10-08 00:09:30 -05:00
parent 228e5c39f5
commit 832f090ea8
1 changed files with 4 additions and 1 deletions

View File

@ -11,11 +11,14 @@ SEARCH_SOURCE
USES_BE_API on <build>makebootable = true ; USES_BE_API on <build>makebootable = true ;
local hostPlatformSources ; local hostPlatformSources ;
local hostPlatformLibs ;
if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd || $(HOST_PLATFORM) = darwin { if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd || $(HOST_PLATFORM) = darwin {
UsePrivateHeaders interface ; UsePrivateHeaders interface ;
UseHeaders [ FDirName $(HAIKU_TOP) src libs uuid ] ;
hostPlatformSources = PartitionMap.cpp PartitionMapParser.cpp hostPlatformSources = PartitionMap.cpp PartitionMapParser.cpp
crc32.cpp Header.cpp utility.cpp ; crc32.cpp Header.cpp utility.cpp ;
hostPlatformLibs = libuuid_kernel.a ;
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons kernel
partitioning_systems intel ] ; partitioning_systems intel ] ;
@ -35,7 +38,7 @@ if $(HOST_PLATFORM) != darwin && $(HOST_PLATFORM) != cygwin
BuildPlatformMain <build>makebootable : BuildPlatformMain <build>makebootable :
makebootable.cpp makebootable.cpp
$(hostPlatformSources) $(hostPlatformSources)
: $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) : $(HOST_LIBBE) $(HOST_LIBSTDC++) $(HOST_LIBSUPC++) $(hostPlatformLibs)
; ;
# on Darwin write the boot loader code into an attribute # on Darwin write the boot loader code into an attribute