1SubDir HAIKU_TOP src system libroot posix string ; 2 3UsePrivateHeaders 4 [ FDirName libroot ] 5 [ FDirName libroot locale ] 6 ; 7 8 9# Our versions of strdup and strndup check for NULL parameters (for BeOS 10# compatibility), but GCC optimizes this away as its builtins don't handle 11# it. 12C++FLAGS += -fno-builtin-strdup -fno-builtin-strndup ; 13 14local architectureObject ; 15for architectureObject in [ MultiArchSubDirSetup ] { 16 on $(architectureObject) { 17 local architecture = $(TARGET_PACKAGING_ARCH) ; 18 19 MergeObject <$(architecture)>posix_string.o : 20 bcmp.c 21 bcopy.c 22 bzero.c 23 memccpy.c 24 memchr.c 25 memcmp.c 26 memmem.c 27 memmove.c 28 stpcpy.c 29 strcasecmp.c 30 strcasestr.c 31 strcat.c 32 strchr.c 33 strcmp.c 34 strcoll.cpp 35 strcpy.c 36 strdup.cpp 37 strerror.c 38 strlcat.c 39 strlcpy.c 40 strlen.cpp 41 strlwr.c 42 strncat.c 43 strncmp.c 44 strncpy.cpp 45 strndup.cpp 46 strnlen.cpp 47 strpbrk.c 48 strrchr.c 49 strspn.c 50 strstr.c 51 strtok.c 52 strupr.c 53 strxfrm.cpp 54 ; 55 } 56} 57 58local arch ; 59for arch in $(TARGET_ARCHS) { 60 HaikuSubInclude arch $(arch) ; 61} 62