mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-3da444b79ea271f3964a585f44a310624dcbd5d4 / contrib / syslib.sh
blob0bea34e5d19eef9c1cae0491ed799feb67570b14
1 # syslib configuration here
2 #-------------------------------------------------------------------------------
3 if test "${syslib_incdir-unset}" = unset; then
4 syslib_incdir=/nyan/glibc/current/include
5 fi
6 #-------------------------------------------------------------------------------
7 # for a glibc
8 syslib_cpp_flags_defs="\
9 -D_GNU_SOURCE=1 \
10 -DHAVE_SYS_SYSCTL_H=1 \
11 -DHAVE_ENDIAN_H=1 \
12 -DHAVE_DLFCN_H=1 \
13 -DHAVE_UNISTD_H=1 \
15 -DMAJOR_IN_SYSMACROS=1 \
16 -DHAVE_STRTOF=1 \
17 -DHAVE_MKOSTEMP=1 \
18 -DHAVE_TIMESPEC_GET=1 \
19 -DHAVE_STRTOD_L=1 \
20 -DHAVE_DLADDR=1 \
21 -DHAVE_DL_ITERATE_PHDR=1 \
22 -DHAVE_PTHREAD=1 \
23 -DHAVE_PTHREAD_SETAFFINITY=1 \
24 -DHAVE_TIMESPEC_GET=1 \
25 -DHAVE_STRUCT_TIMESPEC=1 \
26 -DHAVE_REALLOCARRAY=1 \
27 -DHAVE_SECURE_GETENV=1 \
29 -DHAVE_PROGRAM_INVOCATION_NAME=1 \
30 -DHAVE_FLOCK=1 \
32 -DHAVE_GNU_QSORT_R=1 \
33 -DHAVE_RANDOM_R=1 \
34 -DHAVE_STRTOK_R=1 \
35 -DHAVE_GETRANDOM=1 \
37 -DHAVE_POSIX_FALLOCATE=1 \
38 -DHAVE_POSIX_MEMALIGN=1 \
40 -DHAVE_ISSIGNALING=1 \
42 -DHAVE_DIRENT_D_TYPE=1 \
44 #-------------------------------------------------------------------------------
45 # syslib specific start/end files for linking a Shared LIBrary (slib), they
46 # appear before/after the compiler start/end files while linking. Here, as an
47 # example, look at the compiler driver $gcc_src/gcc/config/gnu-user.h (13.2.0)
48 # if you want to understand a bit more in the case of glibc, shared libs do fall
49 # in the "shared" category (there, you can see the object requirement of PIE
50 # static-PIE, etc etc).
51 # GNU toolchain have a circular dependency between the gcc support library,
52 # libgcc, and the glibc itself, namely you have to handle that with your linker
53 # (binutils ld has --{start,end}-group, or YOU USUALLY HAVE TO REPEAT THE
54 # LIBRARY FILES (XXX: DOES NOT WORK WITH OBJECT FILES) ON THE LINK COMMAND LINE
55 # UNTIL YOU BREAK THE CIRCULAR DEPENDENCY.
56 # We want full pathnames.
57 if test "${syslib_ld_slib_start_files-unset}" = unset; then
58 syslib_ld_slib_start_files=/nyan/glibc/current/lib/crti.o
60 if test "${syslib_ld_slib_end_files-unset}" = unset; then
61 syslib_ld_slib_end_files=/nyan/glibc/current/lib/crtn.o
63 #-------------------------------------------------------------------------------
64 if test "${syslibs_libc_ld_flags-unset}" = unset; then
65 syslibs_libc_ld_flags='-L/nyan/glibc/current/lib -lc'
67 if test "${syslibs_libdl_ld_flags-unset}" = unset; then
68 syslibs_libdl_ld_flags='-L/nyan/glibc/current/lib -ldl'
70 if test "${syslibs_libpthread_ld_flags-unset}" = unset; then
71 syslibs_libpthread_ld_flags='-L/nyan/glibc/current/lib -lpthread'
73 # libm.a was not compiled with -fPIC -fpic by glibc sdk...
74 if test "${syslibs_libm_ld_flags-unset}" = unset; then
75 syslibs_libm_ld_flags='-L/nyan/glibc/current/lib -lm'
77 #-------------------------------------------------------------------------------