aboutsummaryrefslogtreecommitdiff
path: root/core/binutils/build
blob: 61c53318603454d4c8bc924dd62863d75cf0126e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh -e

# Architecture specific build options
case "$3" in
    i?86) archopts="--enable-64-bit-bfd"
esac

cat > makeinfo <<EOF
#!/bin/sh
printf 'makeinfo (GNU texinfo) 5.2\n'
EOF

chmod +x makeinfo
export PATH=$PATH:$PWD

# Word splitting is intentional here.
# shellcheck disable=2086
cpt-configure \
    --enable-targets=x86_64-pep \
    --disable-multilib \
    --disable-werror \
    --disable-gdb \
    --disable-nls \
    --disable-readline \
    --disable-gprof \
    --with-mmap \
    --with-system-zlib \
    "$archopts"

make
make DESTDIR="$1" install