xref: /haiku/src/libs/gnu/Jamfile (revision e1c4049fed1047bdb957b0529e1921e97ef94770)
1SubDir HAIKU_TOP src libs gnu ;
2
3UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ;
4UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility gnu ] : true ;
5UsePrivateHeaders 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			memmem.c
21			qsort.c
22			sched_getcpu.cpp
23			xattr.cpp
24			;
25	}
26}
27