mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-ddf2ca4faffdd309638aa0ebfcba2c43b4fc439d / contrib / syslib.sh
blobdfafe6a2ab675dc29b6214c8ee36afe656c22657
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 \
28 -DHAVE_PROGRAM_INVOCATION_NAME=1 \
29 -DHAVE_FLOCK=1 \
31 -DHAVE_GNU_QSORT_R=1 \
32 -DHAVE_RANDOM_R=1 \
33 -DHAVE_STRTOK_R=1 \
34 -DHAVE_GETRANDOM=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 #-------------------------------------------------------------------------------