|
root / devel / binutils / build.sh
build.sh Bash 31 lines 567 B
 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
#!/bin/bash
# Build script for GNU Binutils

set -e
cd "$SRCDIR"

export PATH="/usr/gnu/bin:$PATH"
export CC="gcc -m64"
export CXX="g++ -m64"
export CFLAGS="-m64 -O2"
export CXXFLAGS="-m64 -O2"
export LDFLAGS="-m64 $LDFLAGS"

# Build in separate directory
mkdir -p build
cd build

../configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --enable-shared \
    --enable-64-bit-bfd \
    --enable-plugins \
    --enable-threads \
    --disable-werror \
    --with-system-zlib \
    --target=$BUILD_TRIPLE

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"