SubDir HAIKU_TOP src libs gnu ; UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ; UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility gnu ] : true ; UsePrivateHeaders libroot shared ; SubDirCcFlags [ FDefines _GNU_SOURCE=1 ] ; SubDirC++Flags [ FDefines _GNU_SOURCE=1 ] ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup ] { on $(architectureObject) { UsePrivateSystemHeaders ; if $(TARGET_ARCH) = x86_64 { SubDirC++Flags -mrdpid ; } SharedLibrary [ MultiArchDefaultGristFiles libgnu.so ] : crypt.cpp memmem.c qsort.c sched_affinity.cpp sched_getcpu.cpp xattr.cpp ; } }