aboutsummaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-01-05 15:55:30 +0300
committerCem Keylan <cem@ckyln.com>2021-01-05 15:55:30 +0300
commit8f469f093020a76d2ebaf7e5ab4067412d6a3184 (patch)
treede5f80353a717fe869c5439dee4f2ec25d45a386 /community
parentdde59a1564f17fce572b096602c4694da23325c8 (diff)
downloadrepository-8f469f093020a76d2ebaf7e5ab4067412d6a3184.tar.gz
aria2: link statically
Diffstat (limited to 'community')
-rwxr-xr-xcommunity/aria2/build6
1 files changed, 5 insertions, 1 deletions
diff --git a/community/aria2/build b/community/aria2/build
index 9fae6147..f6281345 100755
--- a/community/aria2/build
+++ b/community/aria2/build
@@ -1,5 +1,9 @@
#!/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 \
@@ -9,5 +13,5 @@
--without-libexpat \
--without-sqlite3
-make
+make LDFLAGS="$LDFLAGS -all-static"
make DESTDIR="$1" install