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