diff options
Diffstat (limited to 'scripts/static_build.sh')
-rwxr-xr-x | scripts/static_build.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/static_build.sh b/scripts/static_build.sh new file mode 100755 index 00000000..7eb00e10 --- /dev/null +++ b/scripts/static_build.sh @@ -0,0 +1,28 @@ +#!/bin/sh +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 APBUILD_STATIC_LIBGCC=1 + +./autogen.sh + +./configure --enable-staticlink --disable-artwork-imlib2 --prefix=/opt/deadbeef +sed -i 's/-lstdc++ -lm -lgcc_s -lc -lgcc_s/-lm -lc/g' libtool +make clean +make -j9 + +#./scripts/portable_extraplugs.sh + +cd $ORIGIN + +echo "building pluginfo tool..." +cd tools/pluginfo +make +cd ../../ + +#./scripts/portable_postbuild.sh +fakeroot -- ./scripts/static_install.sh + |