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 memmove.c 27 stpcpy.c 28 strcasecmp.c 29 strcasestr.c 30 strcat.c 31 strchr.c 32 strcmp.c 33 strcoll.cpp 34 strcpy.c 35 strdup.cpp 36 strerror.c 37 strlcat.c 38 strlcpy.c 39 strlen.cpp 40 strlwr.c 41 strncat.c 42 strncmp.c 43 strncpy.cpp 44 strndup.cpp 45 strnlen.cpp 46 strpbrk.c 47 strrchr.c 48 strspn.c 49 strstr.c 50 strtok.c 51 strupr.c 52 strxfrm.cpp 53 ; 54 } 55} 56 57local arch ; 58for arch in $(TARGET_ARCHS) { 59 HaikuSubInclude arch $(arch) ; 60} 61