1 SubDir HAIKU_TOP src system libroot stubbed ;
3 local architectureObject ;
4 for architectureObject in [ MultiArchSubDirSetup ] {
5 on $(architectureObject) {
7 UsePrivateSystemHeaders ;
9 # Build <stubbed>libroot.so, containing only empty symbols.
11 if $(TARGET_PACKAGING_ARCH) = x86_gcc2 {
12 stubsSource = [ FGristFiles libroot_stubs_legacy.c ] ;
14 stubsSource = [ FGristFiles libroot_stubs.c ] ;
16 local stubsObject = $(stubsSource:S=$(SUFOBJ)) ;
17 CCFLAGS on $(stubsObject) = -Wno-missing-prototypes -fno-builtin ;
18 Depends $(stubsObject) : $(stubsSource) ;
19 BootstrapStage0PlatformObjects $(stubsSource) ;
21 = [ MultiArchDefaultGristFiles libroot.so : stubbed ] ;
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) ;