Fix some uses of ret in libpthread
[glibc/nacl-glibc.git] / myconfig.sh
blob63299518274a0f7f63f5224e0dc826a691ea3bfa
1 #!/bin/bash
3 set -e
5 # Since we are taking Linux glibc as a starting point we need the
6 # Linux kernel headers. In the long term we will need Linux's errno
7 # numbers, but probably nothing more.
8 rm -rf kernel-headers
9 mkdir kernel-headers
10 cp -a /usr/include/asm /usr/include/asm-generic /usr/include/linux \
11 kernel-headers/
13 BUILDDIR=build
14 mkdir -p $BUILDDIR
15 PREFIX=$(cd .. && pwd)/install
16 cd $BUILDDIR
17 ../configure --prefix=$PREFIX --host=i486-linux-gnu \
18 CC="`pwd`/../../tools_bin/linux/sdk/nacl-sdk/bin/nacl-gcc -L`pwd`/../ld" \
19 CFLAGS="-march=i486 -pipe -fstrict-aliasing -O2 -g -mno-tls-direct-seg-refs" \
20 --with-headers=`pwd`/../kernel-headers --enable-kernel=2.2.0
21 # --disable-shared