clarify the purpose of this project
[nyanglibc.git] / make / hesiod.sh
blobbe92cf87101611ecc4b09bd79073c93adedf161a
1 printf "\
2 HESIOD**************************************************************************\n"
3 mkdir -p $build_dir/hesiod
4 fns_shared="\
5 hesiod \
6 hesiod-grp \
7 hesiod-proto \
8 hesiod-pwd \
9 hesiod-service \
11 for fn in $fns_shared
13 printf "ASSEMBLING SHARED $fn\n"
14 $as $src_dir/hesiod/$fn.shared.s -o $build_dir/hesiod/$fn.os
15 done
16 cd $build_dir/hesiod
17 printf 'CREATING LIBNSS_HESIOD_PIC.A\n'
18 $ar cruv libnss_hesiod_pic.a hesiod.os hesiod-grp.os hesiod-proto.os hesiod-pwd.os hesiod-service.os
19 printf 'CREATING LIBNSS_HESIOD.SO.2\n'
20 $ld \
21 -s \
22 -shared \
23 -O1 \
24 -z defs \
25 --dynamic-linker=/lib64/ld-linux-x86-64.so.2 \
26 -L$build_dir/csu/ \
27 --version-script=$src_dir/libnss_hesiod.versions.map \
28 -soname=libnss_hesiod.so.2 \
29 -z combreloc \
30 -z relro \
31 --hash-style=both \
32 -L$build_dir \
33 -L$build_dir/math \
34 -L$build_dir/elf \
35 -L$build_dir/dlfcn \
36 -L$build_dir/nss \
37 -L$build_dir/nis \
38 -L$build_dir/rt \
39 -L$build_dir/resolv \
40 -L$build_dir/mathvec \
41 -L$build_dir/support \
42 -L$build_dir/crypt \
43 -L$build_dir/nptl \
44 -rpath-link=$build_dir:$build_dir/math:$build_dir/elf:$build_dir/dlfcn:$build_dir/nss:$build_dir/nis:$build_dir/rt:$build_dir/resolv:$build_dir/mathvec:$build_dir/support:$build_dir/crypt:$build_dir/nptl \
45 -o $build_dir/hesiod/libnss_hesiod.so \
46 -T $src_dir/shlib.lds \
47 $build_dir/csu/abi-note.o \
48 --whole-archive \
49 $build_dir/hesiod/libnss_hesiod_pic.a \
50 --no-whole-archive \
51 $build_dir/resolv/libresolv/libresolv.so \
52 $build_dir/nss/libnss_files/libnss_files.so \
53 --start-group \
54 $build_dir/libc.so \
55 $build_dir/libc_nonshared.a \
56 --as-needed \
57 $build_dir/elf/ld-linux-x86-64.so.2 \
58 --no-as-needed \
59 --end-group