From 833b6688aac53531af3e0099f96a4b9e3acba5f5 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 3 Aug 2013 05:26:25 +0200 Subject: [PATCH] cross devel hpkg: use suffix/subdir for secondary arch * Libraries for a secondary architectures must be placed in a respective subdir. * Add a suffix to the package name when building for a secondary architecture. Looks a bit weird ("haiku_cross_devel_sysroot_x86_gcc_x86.hpkg"), but is consistent. --- build/jam/packages/HaikuCrossDevel | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/build/jam/packages/HaikuCrossDevel b/build/jam/packages/HaikuCrossDevel index ba2099fcdb..5c9b553a26 100644 --- a/build/jam/packages/HaikuCrossDevel +++ b/build/jam/packages/HaikuCrossDevel @@ -4,9 +4,16 @@ # The main use of this package is to provide HaikuPorter with a development # environment for a cross-build Haiku platform. +local primaryArchitecture = $(HAIKU_PACKAGING_ARCHS[1]) ; local architecture = $(TARGET_PACKAGING_ARCH) ; local isPrimaryArchitecture = [ MultiArchIfPrimary 1 : ] ; +local packageNameSuffix = $(primaryArchitecture) ; +local architectureSubDir ; +if ! $(isPrimaryArchitecture) { + packageNameSuffix = $(primaryArchitecture)_$(architecture) ; + architectureSubDir = $(architecture) ; +} local additionalLibraries_stage1 ; local additionalLibraries @@ -17,10 +24,10 @@ for stage in _stage1 "" { # first create the actual cross development package local haikuCrossDevelSysrootPackage - = haiku_cross_devel_sysroot$(stage)_$(architecture).hpkg ; + = haiku_cross_devel_sysroot$(stage)_$(packageNameSuffix).hpkg ; HaikuPackage $(haikuCrossDevelSysrootPackage) ; - local developCrossLibDirTokens = develop lib ; + local developCrossLibDirTokens = develop lib $(architectureSubDir) ; # glue code AddFilesToPackage $(developCrossLibDirTokens) : @@ -82,8 +89,8 @@ for stage in _stage1 "" { # system hierarchy of the target system, from where haikuporter will fetch # it when needed. - local haikuCrossDevelPackage - = haiku_cross_devel$(stage)_$(architecture).hpkg ; + local haikuCrossDevelPackage + = haiku_cross_devel$(stage)_$(packageNameSuffix).hpkg ; HaikuPackage $(haikuCrossDevelPackage) ; # add the wrapped package