xref: /haiku/src/libs/gnu/Jamfile (revision 344ded80d400028c8f561b4b876257b94c12db4a)
1SubDir HAIKU_TOP src libs gnu ;
2
3UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ;
4UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility gnu ] : true ;
5UsePrivateHeaders libroot shared ;
6
7SubDirCcFlags [ FDefines _GNU_SOURCE=1 ] ;
8SubDirC++Flags [ FDefines _GNU_SOURCE=1 ] ;
9
10local architectureObject ;
11for architectureObject in [ MultiArchSubDirSetup ] {
12	on $(architectureObject) {
13		UsePrivateSystemHeaders ;
14		if $(TARGET_ARCH) = x86_64 {
15			SubDirC++Flags -mrdpid ;
16		}
17
18		SharedLibrary [ MultiArchDefaultGristFiles libgnu.so ] :
19			crypt.cpp
20			qsort.c
21			sched_affinity.cpp
22			sched_getcpu.cpp
23			xattr.cpp
24			;
25	}
26}
27