xref: /haiku/src/system/libroot/posix/string/Jamfile (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
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			ffs.cpp
24			memccpy.c
25			memchr.c
26			memcmp.c
27			memmove.c
28			stpcpy.c
29			strcasecmp.c
30			strcasestr.c
31			strcat.c
32			strchr.c
33			strchrnul.c
34			strcmp.c
35			strcoll.cpp
36			strcpy.c
37			strcspn.c
38			strdup.cpp
39			strerror.c
40			strlcat.c
41			strlcpy.c
42			strlen.cpp
43			strlwr.c
44			strncat.c
45			strncmp.c
46			strncpy.cpp
47			strndup.cpp
48			strnlen.cpp
49			strpbrk.c
50			strrchr.c
51			strspn.c
52			strstr.c
53			strtok.c
54			strupr.c
55			strxfrm.cpp
56			;
57	}
58}
59
60local arch ;
61for arch in $(TARGET_ARCHS) {
62	HaikuSubInclude arch $(arch) ;
63}
64