1b2883f6aSOliver TappeSubDir HAIKU_TOP src system libroot stubbed ; 2b2883f6aSOliver Tappe 3b2883f6aSOliver Tappelocal architectureObject ; 4b2883f6aSOliver Tappefor architectureObject in [ MultiArchSubDirSetup ] { 5b2883f6aSOliver Tappe on $(architectureObject) { 6b2883f6aSOliver Tappe 7b2883f6aSOliver Tappe UsePrivateSystemHeaders ; 8b2883f6aSOliver Tappe 9b2883f6aSOliver Tappe # Build <stubbed>libroot.so, containing only empty symbols. 10b2883f6aSOliver Tappe local stubsSource ; 11b2883f6aSOliver Tappe if $(TARGET_PACKAGING_ARCH) = x86_gcc2 { 12b2883f6aSOliver Tappe stubsSource = [ FGristFiles libroot_stubs_legacy.c ] ; 13*79efafa0SAugustin Cavalier } else if $(TARGET_PACKAGING_ARCH) = x86 { 14*79efafa0SAugustin Cavalier stubsSource = [ FGristFiles libroot_stubs.c libroot_stubs_x86.c ] ; 15a9fed72bSPulkoMandy } else if $(TARGET_PACKAGING_ARCH) = sparc { 16a9fed72bSPulkoMandy stubsSource = [ FGristFiles libroot_stubs.c libroot_stubs_sparc.c ] ; 17b2883f6aSOliver Tappe } else { 18b2883f6aSOliver Tappe stubsSource = [ FGristFiles libroot_stubs.c ] ; 19b2883f6aSOliver Tappe } 20*79efafa0SAugustin Cavalier 21b2883f6aSOliver Tappe local stubsObject = $(stubsSource:S=$(SUFOBJ)) ; 22b2883f6aSOliver Tappe CCFLAGS on $(stubsObject) = -Wno-missing-prototypes -fno-builtin ; 23b2883f6aSOliver Tappe Depends $(stubsObject) : $(stubsSource) ; 24445257ffSOliver Tappe BootstrapStage0PlatformObjects $(stubsSource) ; 25b2883f6aSOliver Tappe local stubbedLibroot 26b2883f6aSOliver Tappe = [ MultiArchDefaultGristFiles libroot.so : stubbed ] ; 27b2883f6aSOliver Tappe local versionScript 28b2883f6aSOliver Tappe = [ FDirName $(HAIKU_TOP) src system libroot libroot_versions ] ; 29b2883f6aSOliver Tappe LINKFLAGS on $(stubbedLibroot) 30b2883f6aSOliver Tappe = -shared -soname=libroot.so --version-script $(versionScript) ; 31b2883f6aSOliver Tappe Ld $(stubbedLibroot) : $(stubsObject) ; 32b2883f6aSOliver Tappe } 33b2883f6aSOliver Tappe} 34