aboutsummaryrefslogtreecommitdiff
path: root/community/aria2/build
blob: af3418ee855b078283a8c1251f222e9fd5965194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

export CFLAGS="$CFLAGS -static-libgcc"
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++"
export PKG_CONFIG="pkgconf --static"

./configure \
    --prefix=/usr \
    --disable-nls \
    --disable-metalink \
    --disable-websocket \
    --without-libxml2 \
    --without-libexpat \
    --without-libnettle \
    --without-gnutls \
    --without-sqlite3

make LDFLAGS="$LDFLAGS -all-static"
make DESTDIR="$1" install