summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/static_build.sh2
-rwxr-xr-xscripts/static_install.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/static_build.sh b/scripts/static_build.sh
index 7eb00e10..7ebc85ca 100755
--- a/scripts/static_build.sh
+++ b/scripts/static_build.sh
@@ -3,7 +3,7 @@ VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
ORIGIN=`pwd | perl -ne 'chomp and print'`
AP=$ORIGIN/tools/apbuild
export CC=$AP/apgcc
-export CXX=$AP/apgcc
+export CXX=$AP/apgcc
export APBUILD_STATIC_LIBGCC=1
diff --git a/scripts/static_install.sh b/scripts/static_install.sh
index 9de33357..d2295961 100755
--- a/scripts/static_install.sh
+++ b/scripts/static_install.sh
@@ -1,3 +1,4 @@
#!/bin/sh
VERSION=`cat PORTABLE_VERSION | perl -ne 'chomp and print'`
-DESTDIR=`pwd`/static/deadbeef-$VERSION make install
+ARCH=`uname -m | perl -ne 'chomp and print'`
+DESTDIR=`pwd`/static/$ARCH/deadbeef-$VERSION make install