1 # syslib configuration here
2 #-------------------------------------------------------------------------------
3 if test "${syslib_incdir-unset}" = unset; then
4 syslib_incdir
=/nyan
/glibc
/current
/include
6 #-------------------------------------------------------------------------------
8 syslib_cpp_flags_defs
="\
10 -DHAVE_SYS_SYSCTL_H=1 \
15 -DMAJOR_IN_SYSMACROS=1 \
18 -DHAVE_TIMESPEC_GET=1 \
21 -DHAVE_DL_ITERATE_PHDR=1 \
23 -DHAVE_PTHREAD_SETAFFINITY=1 \
24 -DHAVE_TIMESPEC_GET=1 \
25 -DHAVE_STRUCT_TIMESPEC=1 \
26 -DHAVE_REALLOCARRAY=1 \
28 -DHAVE_PROGRAM_INVOCATION_NAME=1 \
31 -DHAVE_GNU_QSORT_R=1 \
36 -DHAVE_POSIX_FALLOCATE=1 \
37 -DHAVE_POSIX_MEMALIGN=1 \
39 -DHAVE_ISSIGNALING=1 \
41 -DHAVE_DIRENT_D_TYPE=1 \
43 #-------------------------------------------------------------------------------
44 # syslib specific start/end files for linking a Shared LIBrary (slib), they
45 # appear before/after the compiler start/end files while linking. Here, as an
46 # example, look at the compiler driver $gcc_src/gcc/config/gnu-user.h (13.2.0)
47 # if you want to understand a bit more in the case of glibc, shared libs do fall
48 # in the "shared" category (there, you can see the object requirement of PIE
49 # static-PIE, etc etc).
50 # GNU toolchain have a circular dependency between the gcc support library,
51 # libgcc, and the glibc itself, namely you have to handle that with your linker
52 # (binutils ld has --{start,end}-group, or YOU USUALLY HAVE TO REPEAT THE
53 # LIBRARY FILES (XXX: DOES NOT WORK WITH OBJECT FILES) ON THE LINK COMMAND LINE
54 # UNTIL YOU BREAK THE CIRCULAR DEPENDENCY.
55 # We want full pathnames.
56 if test "${syslib_ld_slib_start_files-unset}" = unset; then
57 syslib_ld_slib_start_files
=/nyan
/glibc
/current
/lib
/crti.o
59 if test "${syslib_ld_slib_end_files-unset}" = unset; then
60 syslib_ld_slib_end_files
=/nyan
/glibc
/current
/lib
/crtn.o
62 #-------------------------------------------------------------------------------
63 if test "${syslibs_libc_ld_flags-unset}" = unset; then
64 syslibs_libc_ld_flags
='-L/nyan/glibc/current/lib -lc'
66 if test "${syslibs_libdl_ld_flags-unset}" = unset; then
67 syslibs_libdl_ld_flags
='-L/nyan/glibc/current/lib -ldl'
69 if test "${syslibs_libpthread_ld_flags-unset}" = unset; then
70 syslibs_libpthread_ld_flags
='-L/nyan/glibc/current/lib -lpthread'
72 # libm.a was not compiled with -fPIC -fpic by glibc sdk...
73 if test "${syslibs_libm_ld_flags-unset}" = unset; then
74 syslibs_libm_ld_flags
='-L/nyan/glibc/current/lib -lm'
76 #-------------------------------------------------------------------------------