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 { 14 stubsSource = [ FGristFiles libroot_stubs.c ] ; 15 } 16 local stubsObject = $(stubsSource:S=$(SUFOBJ)) ; 17 CCFLAGS on $(stubsObject) = -Wno-missing-prototypes -fno-builtin ; 18 Depends $(stubsObject) : $(stubsSource) ; 19 BootstrapStage0PlatformObjects $(stubsSource) ; 20 local stubbedLibroot 21 = [ MultiArchDefaultGristFiles libroot.so : stubbed ] ; 22 local versionScript 23 = [ FDirName $(HAIKU_TOP) src system libroot libroot_versions ] ; 24 LINKFLAGS on $(stubbedLibroot) 25 = -shared -soname=libroot.so --version-script $(versionScript) ; 26 Ld $(stubbedLibroot) : $(stubsObject) ; 27 } 28} 29