pcre2: bump to 10.40
[kiss-trunc88.git] / glibc / build
blob3ad503120ab43fdb2187fcad1d496e369efa3dd3
1 #!/bin/sh -e
3 # Build cannot happen without optimizations.
4 export CFLAGS="-DNDEBUG -Os -pipe -march=westmere"
6 # Build must happen outside of glibc source.
7 mkdir -p glibc-build
8 cd glibc-build
10 ../configure \
11 --prefix=/usr \
12 --libdir=/usr/lib \
13 --libexecdir=/usr/lib \
14 --disable-werror \
15 libc_cv_include_x86_isa_level=no
17 printf "%s\n" \
18 "slibdir=/usr/lib" \
19 "rtlddir=/usr/lib" \
20 "sbindir=/usr/bin" \
21 "rootsbindir=/usr/bin" > configparms
23 make
24 make DESTDIR="$1" install
26 rm -f "$1/var/db/Makefile" \
27 "$1/usr/bin/xtrace" \
28 "$1/usr/bin/tzselect"
30 mkdir -p "$1/usr/lib/locale"
31 printf "en_US.UTF8 UTF-8\n" > "$1/etc/locale.gen"
33 for script in ldd locale-gen sotruss; do
34 cp -f "../glibc/$script" "$1/usr/bin/$script"
35 chmod +x "$1/usr/bin/$script"
36 done