SubDir HAIKU_TOP src system libroot posix string arch x86 ;

local architectureObject ;
for architectureObject in [ MultiArchSubDirSetup x86 x86_gcc2 ] {
	on $(architectureObject) {
		local architecture = $(TARGET_PACKAGING_ARCH) ;

		UsePrivateSystemHeaders ;

		SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;

		MergeObject <$(architecture)>posix_string_arch_$(TARGET_ARCH).o :
			[ MultiArchIfPrimary memcpy.c memset.c :
				arch_string.S : x86_64 ]
			;

	}
}