summaryrefslogtreecommitdiff
path: root/scripts/portable_build.sh
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-30 21:22:39 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-30 21:28:38 +0200
commit5abbd96a58cc324167e5161d53f0add4dc45aa68 (patch)
tree62e05a3d153523952f12e673efeb4fe9619456c1 /scripts/portable_build.sh
parent298f66721bf96aeed42b7712519a95776496d4d6 (diff)
x86_64 static build support
Diffstat (limited to 'scripts/portable_build.sh')
-rwxr-xr-xscripts/portable_build.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/portable_build.sh b/scripts/portable_build.sh
index 6a047023..89f2d1ca 100755
--- a/scripts/portable_build.sh
+++ b/scripts/portable_build.sh
@@ -1,14 +1,15 @@
#!/bin/sh
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
-AP=$HOME/bin/autopackage
-export CC=$AP/apbuild/apgcc
-export CXX=$AP/apbuild/apgcc
+AP=$ORIGIN/tools/apbuild
+export CC=$AP/apgcc
+export CXX=$AP/apgcc
+
export APBUILD_STATIC_LIBGCC=1
./autogen.sh
-./configure --enable-staticlink --enable-portable --disable-artwork-imlib2
+./configure --enable-staticlink=yes --enable-portable=yes --disable-artwork-imlib2
sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool
make clean
make -j9