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 memmem.c 21 qsort.c 22 sched_affinity.cpp 23 sched_getcpu.cpp 24 xattr.cpp 25 ; 26 } 27} 28