headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / libroot / stubbed / Jamfile
blob676df07b3f3e7ce6841b5667083835e588f993c8
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.
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         }