aboutsummaryrefslogtreecommitdiff
path: root/community/aria2/build
blob: f62813458b4cb3768d17fe4766b2f9c0639f3661 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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-sqlite3

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