Fix build of nscd
[glibc/nacl-glibc.git] / link-ldso.sh
blobdab8435bdf035d61b8aae5c0105d755bb4f2922f
1 #!/bin/bash
3 # This script is a shortcut for building the dynamic linker.
4 # It's faster than running make on glibc.
6 cd build
7 ../../tools_bin/linux/sdk/nacl-sdk/bin/nacl-gcc \
8 -nostdlib -nostartfiles -shared \
9 -o elf/ld.so \
10 -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs \
11 elf/librtld.os -Wl,--version-script=ld.map \
12 -Wl,-Map,elf/ld.so.map \
13 -Wl,-soname=ld-linux.so.2 -T ../elf_i386.xs