|
root / devel / gmp / build.sh
build.sh Bash 21 lines 338 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Build script for GMP

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"

./configure \
    --prefix=$PREFIX \
    --libdir=$PREFIX/lib \
    --enable-cxx \
    --enable-fat

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